Cross Domain matomo.js script blocked

I have 3 sites and host matomo in a subfolder on one of the sites. On the main website with matomo in the subfolder the script loads okay. However on the other two matomo.js is blocked from loading by the privacy blocker in Firefox. I assume this is because it is trying to load the script from another domain.

I have copied matomo.js to the same path on the other two sites. What is the best way to manage this ?

Hi,

If you are okay with a more complex set up, one solution would be to set up Matomo on a subdomain of one of your sites and then set up your Webserver so Matomo is reachable from a subdomain of all of your sites (matomo.sitea.example, matomo.siteb.example). This way you don’t have to copy anything around.