Script twice in head

Hi,

I installed Matomo and a website with the tracking code in the head. the website https://mulch.oniti.fr/ is a subdomain of https://www.oniti.fr/ (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 ?

Regards.

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 !