Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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&#8243;
    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?
    Thanks

    #722510

    below the mail

    #723447

    Hi!

    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,
    Nikko

    #810277

    Hi

    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&#8221;
    height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
    <!– End Google Tag Manager (noscript) —>

    How do I do that?

    #811237

    Hi,

    Please create a child theme, add the header.php file there and then add your code
    That will do fix all your issues

    Thank you

    Best regards,
    Basilis

    #829967

    will the header.php of child theme cover the original header like the CSS.php?

    #831490

    Hi 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,
    Victoria

    #1047313

    I 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.

    #1048899

    Hi ezvisa,

    Are you using the AdBlock in the browser? It can be blocking the request.

    Best regards,
    Victoria

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.