Tagged: google tag manager
-
AuthorPosts
-
December 9, 2016 at 4:46 pm #722503
Hi,
i have some issues adding mannually google tag manager code.
In headr.php I tried to add first part after <head><!– 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-T6D7F85′);</script>
<!– End Google Tag Manager –>And the second after <body>
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-T6D7F85″
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>But in this second case i’m not sure if I did well, becuase i don’t know where is the correct line
When I check tag manager with tag assistant i have an error
“HTTP response code indicates tag failed to fire: Status 404. This could be due to an empty or un-published container”Any idea?
ThanksDecember 9, 2016 at 4:57 pm #722510below the mail
December 12, 2016 at 11:47 pm #723447Hi!
I have checked header.php and it is placed properly, try to check the solution in this thread: https://productforums.google.com/forum/#!topic/tag-manager/w9FeGSsLckY
Hope this helps.
Best regards,
NikkoJune 20, 2017 at 10:22 am #810277Hi
I have the same problem.
Can´t find the solution.
Need to paste the code immediately after the opening <body> tag.<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-xxxxxxxxxx”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) —>How do I do that?
June 21, 2017 at 11:43 pm #811237Hi,
Please create a child theme, add the header.php file there and then add your code
That will do fix all your issuesThank you
Best regards,
BasilisJuly 26, 2017 at 6:38 am #829967will the header.php of child theme cover the original header like the CSS.php?
July 29, 2017 at 3:28 pm #831490Hi YongyanLi,
You need to copy the code of the header.php from the parent theme to the child theme and make your changes there.
Best regards,
VictoriaDecember 19, 2018 at 6:35 pm #1047313I do exactly what you say, but when I check by “Task Assistant” the Google Tag Manager mark “red indicator” and notification like this:
https://uphinhnhanh.com/image/CwfI4r
https://uphinhnhanh.com/image/CwfrU3
Google say: A red indicator will show that a tag was found with critical implementation issues.
How can I fix it?
Please help me solve this.December 23, 2018 at 9:32 pm #1048899Hi ezvisa,
Are you using the AdBlock in the browser? It can be blocking the request.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.