Discussions
Google Tag Manager (GTM) integration for Eloqua Responsive Landing Pages
For companies than use Google Tag Manager with Google Analytics there are two snippets of code that need to be added onto a page.
A <script> tag that should according to Google's guidance be placed as high in the <head> of the page as possible
and
a <noscript> tag according to Google's guidance should be placed immediately after the opening <body>.
In the responsive editor there is the add additional javascript for the <script> tag and custom code block or cloud static content block for the <noscript> tag, but they don't get placed in the ideal location of the HTML nor does Google Tag Assistance recognize the tags added this way with the responsive editor. It would be really wonderful to have an GTM app so that the codes code be added in the correct place on a landing page & function.
- Paste this code as high in the <head> of the page as possible:
Comments
-
Has this been resolved?
-
Hi, any solution you can recommend to solve this? Thanks in advance for reaching out.
-
Any update or workaround for this? After all this time, would be great to have a solution that works! Thanks!
-
There is a work-around, but it is not a correct solution.
You would select custom code block. Usually, this custom code block should be placed at the top (or as high as possible) on the page.
After that, you would add both <script>...</script> which is to be added in <head>...</head> part and
<noscript>...</noscript> which is to be added in <body>...</body> together inside this custom code block. (I know it sounds strange, but that's what the work-around is)
Utlimately, what you are doing here is adding both <script> and <noscript> tags within the <body> tags as the custom code will appear within the <body>...</body>
This will work. I added Google Analytics code through GTM and checked the real time traffic. It works like a charm.
Please note:
- This is a work-around and not the perfect solution.
- You will see an error in Google Tag Assistant. Ignore this error.