I am trying to understand electromagnetism better in terms of tensors and differential geometry. First recall that (in the Lorenz gauge) the equation of motion for the four-potential $A^\mu$ is
$$(-\partial_t^2+\partial_x^2+\partial_y^2+\partial_z^2)A^\mu = -\mu_0 J^\mu.$$
My question is how does the 4-current $J^\mu$ transform under a generic change of coordinates? I know that it transforms like a vector but I am confuses as to why since it is ultimately a current density? After all, its components are the charge density, $\rho$, and the current density, J. And, of course, the units of charge density are $C/m^3$ and of current density are $C/(m^2 s)$.
Edit: To spell out my concern about units suppose that I were to implement a global conformal transformation $(t,x,y,z)\mapsto(\bar{t},\bar{x},\bar{y},\bar{z})$ which rescales 1 meter to down 1 foot. Then wouldn't $J^\mu$ be rescaled by $(1\text{ meter}/1\text{ foot})^3$? But this isn't how $J^\mu$ would transform if it were a vector field.
I guess I am confused about how we can combine together a bunch of densities and end up with a tensor instead of a tensor density (which transforms differently than a tensor).
Let's simplify the situation (and actually what follows is the scenario that I really care about). Consider a scalar version of electromagnetism in $n=1+1$ dimensions. The theory is now about the dynamics of a scalar field $\varphi$ given some charge density $\rho$. Note in this theory both of these are scalar fields in their own right and not a component of some other field. Let's say the equation of motion for $\varphi$ is
$$(-\partial_t^2+\partial_x^2)\varphi = -\rho/\epsilon_0$$
where $\rho$ is the scalar charge density which sources this scalar field. Does $\rho$ transform like a scalar or a scalar density? Again I know from this equation that it transforms like a scalar, but I want to know why.
Consider the following bit of hand waving. At any point $p=(t,x)$ define $Q(p)$ to be the total charge to the left of $p$ minus the total charge to the right of $p$. Now $Q$ is clearly a scalar field. Isn't $\rho$ essentially the derivative of $Q$? But then how is $\rho$ a scalar?
Edit: It has been pointed out that $Q$ as I have defined it above depends upon what frame I am using to define it. To fix this, consider the space-like region to the left of $p$ and the space-like region to the right of $p$. Note that these are completely disjoint and can be defined in a coordinate-independent way. Take $Q_\text{alt}(p)$ to be defined as the difference in charges between these two regions. Now define $\rho_\text{alt}$ as the derivative of $Q_\text{alt}$. How does $\rho_\text{alt}$ transform and what makes it different from how $\rho$ transforms?