Issues with the new GTM implementation and dataLayer
-
Hi,
Google has updated the way to deploy GTM https://developers.google.com/tag-manager/quickstart.
I turned the Container code placement off in your plugin because I was getting some errors with the old implementations. That way, when the loading speed is slow for a specific page… The GTM Tag wasn’t being fired. I solved this placing the JS code as close to the opening
<head>
and the iframe after the<body>
.Now, using the implementation suggested by Google, my custom dimensions aren’t being tracked. I think the reason is the dataLayer position, it’s at the bottom of the
<head>
(Before closing</head>
).Should be the
dataLayer
placed before the snippet code? If your answer is yes, I need to know if there’s a way to move thedataLayer
definition and population to the top.My website is knitmuch.com
- The topic ‘Issues with the new GTM implementation and dataLayer’ is closed to new replies.