Verifying Google Search Console with Tag Manager

Hi guys,

I am trying to verify the ownership of Google Search Console with Tag Manager.

  1. I have created a custom html tag where i put the google search console html tag in.

  2. I have deployed the tag and previewed it --> it is fired as expected.

  3. I see the html-tag properly deployed in the header-section as expected.

  4. I verify within Google Search console --> it can’t verify…

What am i doing wrong?

Greetings tako

Hi there,

Nice question, hope this answer will help:

1 Like

Thanks for your quick reply.

I tried this but it is not working…I can’t seem to verify it with Matomo Tag Manager.
Do you know why this might be?

Greetings tako


Google only fetches the HTML source of the page and searches for the string. Your tag (or any other Javascript code) never gets executed and therefore the only way to verify the site is to change the source on serverside.

hey Lukas,

aah oke! thanks for replying. We now resolved it with implemneting the html-hardcoded on the page!

never thought this would be an issue, but now i understand :slight_smile:
Greetings tako