Google Tag Manager - Using Page Specific dataLayer


Q: What problem are you trying to solve?
A: We are passing independent dataLayer variables using the page-specific JavaScript tags for a client. However, the default Google Tag Manager integration in Unbounce loads the GTM script AFTER the body tag rather than in the HEAD tag as specified by Google Tag Manager. As a result, when we use the default Google Tag Manager integration AND try to push a dataLayer, the dataLayer script appears ABOVE the GTM script - meaning the variables aren’t read by GTM.

Q: If solved, what value would this provide (ex. increased efficiency, cost savings, etc.)?
A: Putting the GTM integration PER Google’s recommendation, to the head tag would fix this issue.

Q: Is this being solved by another workaround or any other tool today?
A: Yes, we built Custom Scripts and set the location for the scripts to be executed, then disabled the productized Google Tag Manager integration.