Verifying Google Search Console via Adobe DTM

Avatar

Avatar

johncfl

Avatar

johncfl

johncfl

24-08-2016

Hi,

Is it possible to verify Google Search Console using the HTML tag method via Adobe DTM? I tried adding the verification tag as a sequential HTML but had no success. I do not use Google Tag Manager or GA so those methods are out of the question.

Thanks,

John

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ParitMittal

Avatar

ParitMittal

ParitMittal

25-08-2016

Hi Yeung ,

Yes, you can, if it's what I'm thinking of- you can do this as non-sequential JS for google site verification: 

var newMeta=document.createElement('meta'); newMeta.name="google-site-verification"; newMeta.content="yz1KBJ7bYQaEL6CwZvLWKJvOHd8vJdHrCr5e4XXXXXX"; document.getElementsByTagName('head')[0].appendChild(newMeta);

Please do let us know if you have any questions or queries

Thanks & Regards

Parit Mittal

Answers (1)

Answers (1)

Avatar

Avatar

taciac

Avatar

taciac

taciac

25-08-2016

Hi John,

I haven't tried it, but I have seen this question pop up before. When you added the HTML to a rule did you fire it at the top of the page? The only request I see from Google is that it has to be fired in the head before the body tag. Based on load order if you set it to go at the top of the page that might work.

https://marketing.adobe.com/resources/help/en_US/dtm/load_order.html

Best,

Tacia