Whats the best way to handle Google Server ownership in Episerver?

  • Page Owner: Not Set
  • Last Reviewed: 2020-01-14

Normally google will ask the web admin to place a file google-<guid>.html in the web root to verify ownership. Is this something that can be done without a deploy? Are there better methods?


Additional Posts

I don't think we can set a definitive "best" way to do this. It will always depend on the situation and client preference. The HTML file is one of the simplest ways, and generally google domain ownership only needs to be done once or twice. There are other options that might work well in certain situations:

  • HTML Tag: <meta name="google-site-verification" content="your verification string"> -- If the site has some kind of global raw-code injection capability in the head element, this could be done from within the CMS.
  • DNS Record: If we want to avoid a deployment and DNS is an option, a TXT record could be added.
  • Google Analytics / Tag Manager: If the site already has an Analytics code or Tag Manager container, I believe Google can verify that, assuming the embeds are set up correctly.

Full details are here: https://support.google.com/webmasters/answer/9008080?hl=en