Google Tage Manager working?
Hi, I inserted the GTM code into the header for the site - the code injection > Header.
But I am only getting pings in the analytics from this site https://gtm-msr.appspot.com/render2
That is some kind of non java script enabled thing from Google isn’t it?
How can I make the JS work - I inserted this <!-- Google TAG Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- End Google Tag Manager -->
Thanks, Walter
-
Hi Walter,
As per instructions in this page, https://developers.google.com/tag-platform/devguides/add-tag?solution=gtm, you need to insert two pieces of code
- One piece of code that goes in the <head> section
- Another piece of code that goes in the <body> section
Have you inserted the second piece of code? You can insert it within a Brizy page using the 'Embed' element. If you have a global header, please add the second code in your header block.
0 -
Done, thanks.
0
Please sign in to leave a comment.
Comments
2 comments