• Hi,

    when I try to verify my GSC account through the tag manager option it fails: Google Tag Manager-fragment is on the wrong location on the page.
    I have disabled all plugins, changed theme, but the error remains. I am using GTM4WP. Can you see what I’m doing wrong?

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

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

    (@duracelltomi)

    Hi,

    There is an SVG icon placed between the opening body tag and the noscript/iframe part of the container code. This is a theme issue, please have a look at your WP template and make sure that the wp_body_open hook is placed right after the opening body tag without any other tags in between.

    Thread Starter rensver

    (@rensver)

    Hi Thomas,

    thanks for your answer. Unfortunatly I am not that skilled, so I don’t know what to do with your response.

    I figured out that the svg part on top of the body is caused by wordpress itself: it appearantly caused by the new duotone svg option now available in the gutenberg editor. There is a discussion ongoing as to why this is not an option you can disable: https://github.com/WordPress/gutenberg/issues/38299.

    I changed the theme to twenty-twenty-one, still the svg part remains on top before the noscript/iframe part of the container code.

    Any ideas what I could try next?

    • This reply was modified 4 years, 1 month ago by rensver.
    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    As long as there is no option to disable this svg element, there is nothing you can do. GTM wants you to add the noscript/iframe part just after the opening body element. GTM4WP uses a code that can inject this code into the right place IF another plugin or even the core WP does not mess with this.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wrong location for verification’ is closed to new replies.