PROVE IT, THEN KEEP IT

Search Console verification: DNS, HTML file, meta tag and GA/GTM methods, domain versus URL-prefix properties, and keeping access after a redesign

Search Console and Bing Webmaster Tools show data only after you prove you control the site, and that proof can quietly break. This guide compares DNS, HTML file, meta tag, Analytics and Tag Manager verification, explains domain versus URL-prefix properties, and gives a checklist and commands to keep verification through redesigns, CMS moves and DNS changes.

Concept illustration of an arched ivory ceramic door in a ceramic block with four differently shaped keyholes; a translucent glass key glows mint in one, and a mint thread ties the door handle to one of three copper keys on a tray.
Concept illustration

Google Search Console and Bing Webmaster Tools only show you search data, accept your sitemaps and let you inspect URLs after you prove that you control the site. That proof is called verification. You place a token somewhere that only the site owner can write to: a DNS record, a file at the site root, a tag in the home page HTML, or an Analytics or Tag Manager install that already belongs to your account.

Verification is not a one-time step. Google checks periodically that a verification method still works, and tokens are easy to lose: a new theme drops the meta tag, a static build wipes the root folder, a move to a new DNS provider forgets a TXT record. Access then lapses quietly, and teams often notice only during a migration, exactly when they need the data most.

This guide compares the verification methods, explains the difference between domain and URL-prefix properties, shows how to set each method up on common stacks, and gives a checklist and commands to keep verification alive through redesigns. All examples use example.com and placeholder tokens.

Scope of this guide

This guide covers public verification signals: DNS records, files at the site root and tags in the HTML. Automated checks can see a published token but not whether a property is verified, who owns it or who has access; only Search Console and Bing Webmaster Tools show that.

1. What verification proves, and what it does not

Verification tells Google or Bing that the person adding a property can change the site or its domain. Once a property is verified, its owners can see search performance data, page indexing reports and URL Inspection results, submit sitemaps, receive messages about manual actions and security issues, and use tools such as temporary removals or the Change of Address tool.

It is useful to be clear about the limits:

  • It is not required to appear in search. According to Google Search Central, you do not need Search Console for your pages to be included in Google results. Verification gives you data and controls; it does not boost rankings.
  • Tokens are not secrets. A meta tag or DNS TXT value is public by design. What matters is that each token is tied to one account: the Google or Microsoft account that generated it.
  • Write access means ownership. Anyone who can edit your DNS zone or your home page template can add their own token and become a verified owner. That is why owner lists deserve a regular review (section 9).

2. Domain property versus URL-prefix property

Search Console offers two property types, described in Add a website property:

  • Domain property, entered as example.com. It covers every protocol and every subdomain: http://example.com, https://www.example.com, https://shop.example.com and all paths below them. It can only be verified through DNS.
  • URL-prefix property, entered as a full address such as https://www.example.com/. It covers only URLs that start with exactly that string. http://www.example.com/, https://example.com/ and https://blog.example.com/ are separate properties. A prefix can include a path, for example https://www.example.com/fr/. It accepts every verification method.

A practical setup for most sites:

  • One domain property as the main view, verified by DNS, so data from www, non-www, http, https and every subdomain lands in one place.
  • Additional URL-prefix properties only where they help: a language folder managed by another team, a subdomain run by an agency without DNS access, or a section you want to report on separately.

If you only have URL-prefix properties today, check that the one you watch matches your canonical host. A property for http://example.com/ shows almost nothing once everything redirects to https://www.example.com/.

3. The verification methods compared

Google lists its methods in Verify your site ownership, and Bing lists its own in Add and verify site. Each one stores the proof in a different place, and that place decides what can break it later.

MethodProperty typesWhere the proof livesWhat typically breaks itQuick check
Google DNS TXT recordDomain and URL-prefixTXT record at the root of the DNS zoneNameserver move without copying records; cleanup of unfamiliar TXT recordsdig +short TXT example.com
Google HTML fileURL-prefixA google….html file at the root of the prefixBuild that wipes the root folder; new host; catch-all redirect or login wallcurl -sS -I on the file URL
Google meta tagURL-prefixgoogle-site-verification meta tag in the home page <head>New theme or template; swapping SEO pluginsFetch the home page and search for the tag
Google AnalyticsURL-prefixThe Analytics tag on the home page, plus your permission on the Analytics propertyRemoving or moving the Analytics tag; losing that permissionPage source and the Analytics admin
Google Tag ManagerURL-prefixThe container snippet on the home page, plus your container permissionRemoving the container; permission changesPage source and the Tag Manager admin
Bing XML fileBing siteBingSiteAuth.xml at the site rootSame risks as the Google filecurl -sS https://example.com/BingSiteAuth.xml
Bing meta tagBing sitemsvalidate.01 meta tag in the home page <head>Same risks as the Google meta tagFetch the home page and search for the tag
Bing CNAME recordBing siteA CNAME record in your DNS zoneDNS provider movesdig on the host Bing gives you
Bing import from GoogleBing siteYour access to the Search Console propertyLosing verification on the Google sideBing Webmaster Tools site list

DNS is the most durable choice because it sits outside the website: redesigns, CMS migrations and hosting changes do not touch it. The HTML methods are faster to set up when you cannot edit DNS, and they make a good second method.

4. DNS TXT verification step by step

  1. In Search Console, add a property and choose Domain. Enter example.com without protocol or www.
  2. Copy the TXT value it shows. It starts with google-site-verification=.
  3. At your DNS provider, create a new TXT record at the root of the zone. Many providers use @ or an empty host field for the root.
  4. Wait for the record to be visible, then click Verify. If it fails, wait and retry; new records can take time to appear, depending on your provider and the TTL.
  5. Leave the record in place permanently. Google keeps checking it.

Check what public resolvers see:

dig +short TXT example.com
dig +short TXT example.com @1.1.1.1
nslookup -type=TXT example.com

The last line is the Windows-friendly option. Edge cases to watch:

  • Do not merge the token into your SPF record. A domain can have many TXT records (RFC 1035 allows several records of the same type at a name). Keep v=spf1 … and google-site-verification=… in separate records, or you may break email authentication. The DNS and email security guide covers SPF in detail.
  • Watch for a doubled domain. Some DNS panels append the zone name automatically, so typing example.com in the host field creates a record at example.com.example.com.
  • Several tokens are normal. Each verified owner can have their own google-site-verification record. Do not delete one unless you know whose it is (section 9).
  • Some providers offer a CNAME option for domain verification instead of TXT; follow the instructions Search Console shows for your provider.

5. HTML file and meta tag on common stacks

Both methods prove control of a URL-prefix property through the website itself. The file must be served at the root of the prefix; the meta tag must sit in the <head> of the page at that prefix, before the body content. Both must be reachable without signing in.

The meta tag

The tag is a standard meta element with a name and a content value:

<meta name="google-site-verification" content="YOUR-GOOGLE-TOKEN" />
<meta name="msvalidate.01" content="YOUR-BING-TOKEN" />
  • WordPress: most SEO plugins have a field for webmaster verification codes, which survives theme changes better than editing header.php. If you edit the theme, use a child theme so updates do not overwrite it.
  • Next.js (App Router): the Metadata API has a verification field that renders the tags in the server HTML:
    export const metadata = {
      verification: {
        google: 'YOUR-GOOGLE-TOKEN',
        other: { 'msvalidate.01': 'YOUR-BING-TOKEN' },
      },
    };
  • Static generators and hand-written templates: put the tags in the shared base layout, not in a single page template that a redesign might replace.

Keep the tag in the HTML the server sends. A tag added later by JavaScript or one left inside an HTML comment is not a reliable proof.

The HTML file

Search Console gives you a file with a unique name such as googleabc123def456.html. Upload it unchanged so it answers at https://www.example.com/googleabc123def456.html.

  • Vite, Next.js and similar: place it in the public/ folder so every build copies it to the output root.
  • Hugo: place it in static/.
  • Behind a reverse proxy: nginx can answer the file directly, which survives application deploys. Copy the exact content Search Console provides:
    location = /googleabc123def456.html {
        default_type text/html;
        return 200 "google-site-verification: googleabc123def456.html";
    }

Then confirm the file answers with status 200 and the expected body:

curl -sS -o /dev/null -w "%{http_code}\n" https://www.example.com/googleabc123def456.html
curl -sS https://www.example.com/googleabc123def456.html

6. Google Analytics and Tag Manager methods

If the home page already carries your Google tag or Tag Manager container, Search Console can use it as proof. According to Google's verification help:

  • Google Analytics: the page must use the Analytics tag (gtag.js), placed in the <head> of the home page, and you need edit permission on the Analytics property.
  • Google Tag Manager: the page must use the Tag Manager container snippet as Tag Manager instructs, and you need publish-level permission on the container.

These methods are convenient, but they tie your Search Console access to another product and another permission model. Common ways they fail:

  • Analytics moves inside Tag Manager, so the gtag.js snippet no longer appears directly in the page.
  • A consent or privacy redesign removes the tag from the initial HTML until the visitor agrees.
  • The site switches to another analytics tool and the Google tag disappears.
  • The person who verified loses the Analytics or Tag Manager permission when they leave a team or agency.

Use them as a second method rather than the only one. If you rely on Tag Manager, also read the integrations audit guide, which explains analytics events, the data layer and consent.

7. Bing Webmaster Tools verification

Bing Webmaster Tools offers its own set of methods, described in Add and verify site:

  • Import from Google Search Console. Sign in, choose the import option, authorize access and pick the properties to bring over. Bing verifies them through your Google access, and it can also import sitemaps.
  • XML file. Download BingSiteAuth.xml and serve it at the site root, exactly like the Google file.
  • Meta tag. Add <meta name="msvalidate.01" content="…" /> to the home page <head>.
  • CNAME record. Add the DNS record Bing provides.

Import is the fastest route if Search Console is already set up, but it makes Bing depend on the Google side. After an import, consider adding one Bing-native method too, such as the meta tag next to the Google tag in the same layout file, so that losing one account does not cost you both.

8. Keeping verification through redesigns and migrations

Most lost verifications are side effects of a project that had nothing to do with search. Add these steps to your launch plan.

Before the change

  1. Open Settings → Ownership verification in each Search Console property and note which methods are active for your account.
  2. Record the evidence: run dig +short TXT example.com, save the home page <head>, and list verification files at the root.
  3. Ask the other owners which methods they use; their tokens may live in places you did not create.

During the change

  • New theme or front end: carry the meta tags into the new base layout and the files into the new static folder.
  • New CMS or host: copy root files and make sure catch-all routing does not turn them into 404s or redirects to the home page.
  • New DNS provider: export the full zone, including every TXT and CNAME record, before you switch nameservers, and compare dig results before and after.
  • HTTP to HTTPS or non-www to www: a domain property keeps working. URL-prefix properties are per protocol and host, so add and verify a property for the new canonical prefix.
  • New domain: verify the new domain before launch. Google's Change of Address tool needs you to be a verified owner of both the old and the new property.

After launch

  • Repeat the commands from section 5 and the dig query from section 4 on production, not staging.
  • Open each property and confirm that new data keeps arriving and that no verification warnings appear.
  • Check that key pages have not picked up a noindex during the release; the guide to pages marked noindex shows how to find one, remove it and confirm the fix in Search Console.
  • Add the checks to your launch readiness routine and to the technical SEO audit you run after releases.

9. Owners, users and token hygiene

Search Console separates verified owners, delegated owners and users with full or restricted permissions, as explained in Manage owners, users, and permissions. A verified owner can add other users and owners without asking them to verify anything themselves.

  • Keep at least two verified owners from your own organization, so one person leaving does not lock the team out.
  • Use two methods for the main owner, for example DNS plus a meta tag. Google re-checks verification periodically, and a second method keeps access if one breaks.
  • Review Settings → Users and permissions after staff or agency changes, and remove accounts that no longer need access.
  • Remove the departed owner's token as well. Google's documentation notes that a verified owner whose token is still on the site or in DNS can verify again. Delete their TXT record, meta tag or file only after confirming it is not yours.
  • Treat new tokens you did not add as a question to answer. An unknown google-site-verification record or tag means someone had write access; find out who before you remove it.

The same principles apply in Bing Webmaster Tools, which has its own user management.

10. What Sitelemetry checks for verification

These results come from the integrations audit, included in Starter ($49/month), Professional and Enterprise. It is not included in the Free plan, but a Free account can run it with an audit credit for the integrations area; every Free account starts with one audit credit per audit area. It runs on any public URL without ownership verification. It reads the public HTML of the single URL you enter, as the server delivers it, and does not run JavaScript, so a tag that a script or Tag Manager adds after the page loads is not seen. HTML comments are removed before detection, so a commented-out tag does not count.

  • integrations.searchconsole.present: when a Google, Bing or Yandex verification token is observed (a meta tag in the page head, Google's google-site-verification response header, or a google-site-verification or yandex-verification TXT record), an observation names the providers.
  • integrations.verification.googleVerify, .bingVerify and .yandexVerify: one observation per provider with the methods checked and any token found (masked), or a note that no signal was observed. Google and Yandex are also checked through a DNS TXT lookup on the exact hostname you entered, limited to at most two seconds; Bing is checked by meta tag only. If that lookup fails or times out and no other signal is found, the Google and Yandex observations are marked skipped.

Both are observations, not problems: they do not change the integrations score, and the absence of a token is not reported as a finding. HTML verification files, Bing's XML and CNAME methods, the Analytics and Tag Manager methods and TXT records on other hostnames (for example the apex when you entered www) are not checked. A visible token only shows that one is published. It cannot tell whether the property is still verified, which account owns it or who has access; check that in Search Console and Bing Webmaster Tools.

If the home page returns an anti-bot or challenge page, the audit reports integrations.crawl.interstitial and makes no verification observations; if the page cannot be fetched, it reports integrations.fetch.failed.

Separately, Sitelemetry accepts Google Search Console, a DNS TXT record or an HTTP verification file as proof that you own a target before it runs the security modules that need ownership verification, which is everything beyond its public, passive checks (on the Free plan, three of its ten security modules). Sitelemetry is an automated audit tool, not a penetration test or a certification.

Common questions

Which Search Console verification method is best?

DNS verification through a TXT record is the most durable, because redesigns, CMS migrations and hosting changes do not touch it, and it is the only method for domain properties. Add an HTML meta tag or file as a second method so one failure does not cost you access.

Can I remove the meta tag or file after verifying?

No. Google checks periodically that a verification method still works. If you remove the token and no other method remains for your account, your verified access lapses. Leave the TXT record, file or tag in place for as long as you want access.

Should I use a domain property or a URL-prefix property?

Use a domain property as the main view when you can edit DNS, because it covers http and https, www and every subdomain. Add URL-prefix properties for sections or subdomains you want to report on separately, or when a team cannot access DNS.

Does verifying a site in Search Console improve rankings?

No. You do not need Search Console for your pages to appear in Google. Verification gives you access to data and tools such as indexing reports, URL Inspection and sitemap submission, which help you find and fix problems, but it is not a ranking signal.

Why did I lose verification after a redesign?

Usually the token was in the old site: the new theme dropped the meta tag, a build wiped the root verification file, or Analytics moved into Tag Manager. A DNS provider move without copying TXT records has the same effect. Restore the token, verify again and add a second method.

Sources & further reading

  1. Search Console Help: Verify your site ownershipsupport.google.com
  2. Search Console Help: Add a website property to Search Consolesupport.google.com
  3. Search Console Help: Manage owners, users, and permissionssupport.google.com
  4. Google Search Central: Get started with Search Consoledevelopers.google.com
  5. Bing Webmaster Tools Help: Add and verify sitewww.bing.com
  6. MDN: The meta elementdeveloper.mozilla.org
  7. RFC 1035: Domain names, implementation and specificationwww.rfc-editor.org
Sitelemetry team

Prepared by the Sitelemetry editorial team. Explore the linked sources for further detail.

SITELEMETRY

Put what you learned to work.

Explore your website’s structure, settings and signals with Sitelemetry.