I have the following integral
$$\int d^4\boldsymbol{x}' \,\delta\big[(\boldsymbol{x}-\boldsymbol{x'})^2+\alpha^2\big]\,\Theta(-x_0+x'_0)\,\delta\big[(\boldsymbol{x'})^2+\alpha^2\big]\,\Theta(-x_0'),\tag{1}\label{1}$$
where $\boldsymbol{x}=\{x_0,x_1,x_2,x_3\}$, the square is $(x')^2=x_\mu'\cdot x'^{\mu}$, and the metric convention used is $\{-1,1,1,1\}.$
First I wanted to do it in the limit $\alpha\to0$, where then I used the second dirac delta and theta function to impose $$x_0'=-\sqrt{(x_1')^2+(x_2')^2+(x_3')^2}.$$
Then performing the first integral over $dx_0'$ we would end up with
$$\int d^3\boldsymbol{x}'\,\frac{\delta\big[\boldsymbol{x}^2-2x_0\sqrt{(x_1')^2+(x_2')^2+(x_3')^2}-2x^1 x_1'-2x^2 x_2'-2x^3 x_3'\big]}{2\sqrt{2}\sqrt{(x_1')^2+(x_2')^2+(x_3')^2}}\,\times\Theta\bigg(-x_0-\sqrt{(x_1')^2+(x_2')^2+(x_3')^2}\bigg),\tag{2}\label{2}$$
where the denominator came from the expansion of the second dirac delta via $$\int_{\mathbb{R}^n}f(x)\,\delta\big(g(x)\big)dx=\int_{g^{-1}(0)} \frac{f(x)}{|\nabla g|}d\sigma(x).\tag{3}\label{3}$$
This is not a very nice expression to work with so then I tried to go to spherical coordinates, however this ran into some issues.
I tried
$$\int dr'\int d\phi_1 d\phi_2\,\times\frac{(r')^2\,\text{sin}(\phi_1)}{2\sqrt{2}\,r'}\delta\big[\boldsymbol{x}^2-2r'\big(x_0+x_1 \text{sin}(\phi_1) \text{cos}(\phi_2)+x_2 \text{sin}(\phi_1) \text{sin}(\phi_2)+x_3 \text{cos}(\phi_1)\big)\big]\,\times\Theta\big(-x_0-r'\big),\tag{4}\label{4}$$
I don't think this factor of $r'$ should be there, as the final result should be proportional to (updated 28/09) $\Theta\big(-x_0-\sqrt{x_1^2+x_2^2+x_3^2}\big)$. Furthermore, since we normally have
$$\delta(\boldsymbol{x}-\boldsymbol{x}_0)=\frac{1}{r^2\text{sin}(\phi_1)}\delta(r-r_0)\delta(\phi-\phi_0)\delta(\theta-\theta_0),\tag{6}\label{6}$$
I am not sure I am even expressing the Dirac delta correctly in \eqref{4}.
I am also a bit lost in the difference between the usual coordinate change involving the Jacobian, and the relation \eqref{3}, obviously one is a coordinate change and one is not, but they seem to have very similar effects.
So I my main questions are; what is the correct way to transform the expression \eqref{2} into polar coordinates, and am I using \eqref{3} correctly in tandem with the coordinate change?