Support » Plugin: Google Tag Manager for WordPress » GSC doesn’t recognize the GTM code

  • jbijman

    (@jbijman)


    Good day,

    For some reason Google Search Console doesn’t recognize the GTM tag on my website.

    Can you maybe take a look what is going wrong?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Please change the code placement option to “Codeless”

    Thread Starter jbijman

    (@jbijman)

    Hi @duracelltomi ,

    Thanks for the reply.

    Unfortunately it is still not working. I get the following error:

    The Google Tag Manager snippet on your site is in the wrong location on the page.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    There is this line added by some script on your site after the opening body tag:

    <script type="rocketlazyloadscript" data-rocket-type="text/javascript" id="wd-flicker-fix">// Flicker fix.</script>

    I do not know how but this line has to me either removed or moved a but lower so that the GTM noscript/iframe tag can be the first element after the opening body tag. Currently, because of this script tag, it is only the second. And this breaks GSC verification.

    Thread Starter jbijman

    (@jbijman)

    @duracelltomi ,

    Hmm, thanks. I can’t find the code anywhere in my theme. How can I be sure the GTM tag loads before this code?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    The GTM noscript tag should be loaded above this code and below the opening body tag.

    It might be added by WP Rocket and some option inside of it.

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