Site logo

Archived topic

Google Search Console Site Verification via Google Tag Manager

5 replies · Started by Nathaniel on September 26, 2017

Viewing posts 1–6 of 6

Hello, Currently I need to validate my website with Google Search Console. I have previously done this using Google Analytics, however, after I switched to Google Tag Manager, I have been having some problems. When I look at where to put this snippet, it says it has to go DIRECTLY below the body tag. However, there is currently some screenreader code that says something like "go to content" before the tag manager tag. I have utilized GP Hooks to put my Google Tag Manager snippet right below the body, however, it doesn't look like there is a good way to get this to work because the "go to content" screenreader element is between this snippet and the body.

Please help,

Thanks

That shouldn't actually matter - they just want it above all of your content.

Being below the screen reader text won't mess with the code at all :)

Ok, I just tried to get this to work and it wasn't working. I noticed that it emphasized that it needed to be directly below the body tag and figured that that was the problem.

Hmm, well you can try copying the header.php file and pasting it into your child theme.

Then try adding your code above the screen reader text.

Might be worth trying just to test?

That fixed it. It was necessary that it is DIRECTLY below the body tag.

Interesting - thanks for letting me know!

This archived topic is closed to new replies.