Closed (fixed)
Project:
Google Tag
Version:
7.x-1.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2020 at 20:24 UTC
Updated:
18 May 2020 at 16:59 UTC
Jump to comment: Most recent
Comments
Comment #2
solotandem commentedYes, the code in includes/snippet.inc (line 159) defines the (noscript) code as a hidden iframe; this matches what Google indicates in the Quick Start Guide you linked to.
Are you misreading the text of the page you linked to? While what you quote is placed following the noscript snippet, it refers to the script snippet. The noscript snippet output from this module agrees with what is shown on the guide.
Comment #3
charlesj commentedPerhaps this is a Google issue. The code sample defines a hidden iframe, but the "Note:" beneath it says that putting it in a hidden iframe will prevent certain tags from accurately tracking the parent page.
Comment #4
solotandem commentedGoogle documentation could be clearer.
It reads "The [Google Tag Manager] snippet must be placed directly in the page that you intend on tracking."
The bracketed text is also used in snippet #1.
The second snippet is referred to as the "Google Tag Manager (noscript)" snippet.
Comment #5
charlesj commentedVery clear indeed. Particulary that second part of the section (omitted from your response)
The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.
And the iframe code in #2 --
--- is certainly not a hidden iframe.