Script twice in head


I installed Matomo and a website with the tracking code in the head. the website is a subdomain of (I used the matomo tag manager for this one).

I have this error in console : Methods setTrackerUrl and setSiteId are registered more than once in “_paq” variable.

Can you help ?


Hi @Sybil ,
Yes, the code is twice in your HTML. That is not allowed. Could it be that it has something to do with the consent banner and that inserts the Matomo code a second time? Check your consent banner or the spot in your CMS where you may have inserted Matomo code.

Oh Yes I forgot ComplianZ was injecting the Matomo code. Thank you !