Join the Webstudio community

Updated 4 months ago

Troubleshooting Google Tag Manager installation

At a glance

The community member is having trouble getting Google Tag Manager to work, wondering if the <body> part needs to be inserted from an HTML embed since the general settings only have the <head> field. Other community members suggest splitting the code, putting the <head> code in the project settings and the <body> code in an HTML embed. The issue seems to be that Google is not identifying the tag as installed, even though it's working in the developer tools. The community members suggest checking for domain restrictions or browser extensions that may be blocking it. The issue was eventually resolved by disabling the native ad blocker in the Brave browser.

Useful resources
Hello, I'm installing Google Tag Manager and it's not showing up in the console working, I'm wondering if the <body> part has to be inserted from an HTML embed, since in the general settings we only have the <head> field, could someone clarify this for me?
J
M
8 comments
If you use the project settings code, that only renders on the live site.

As for splitting them up, yeah you can put the head code in the project settings and the body code in an HTML Embed and put that into a slot like header or footer so its on every page
The problem is that in this separate mode Google is not identifying the tag as installed, but I inspected it with dev tools and it is working, where am I going wrong?
You're testing on the published site? Can you send it my way? Maybe there is some domain restriction on Google's end where you have to whitelist it?
Yes, it's the published version
About the domain, I don't know if this applies, the company that owns the domain is Registro.br
Do you have browser extentions blocking it maybe? I see it working
Attachment
image.png
It was the native adblocker, from brave browser, thank you
Add a reply
Sign up and join the conversation on Discord