Archived topic
Tag Manager error 403
5 replies · Started by Saverio on May 6, 2020
As soon as i put the Google Tag Manager noscript after the body tag,
i get this error (index):1 Failed to load resource: the server responded with a status of 403 ().
the link https://www.googletagmanager.com/ns.html?id=GTM-XXX is forbidden.
This happens only in generate press, the same script with other themes works.
Hi there,
How are you adding it?
With a hook element?
Let me know :)
I added it directly in the header.php, in the childtheme,
the first noscript in the header tag, the secon immediatly after the body tag
Hi there,
Can you try this method instead of adding it into the header template?: https://docs.generatepress.com/article/implement-google-tag-manager/
Let me know :)
Thanks tom,
the problem was an external link in the elements hook, disabled the hook everythings works
Glad you got it sorted :)