Technical SEO

Google Search Console verification: every method, and how to fix a failed one

How to verify a site in Google Search Console: Domain vs URL prefix, the DNS TXT steps, the four other methods, and what each verification error means.

// in this article

To verify a site in Google Search Console, add it as a property, copy the token Google gives you (usually a TXT record that starts with google-site-verification=), put that token where Google asks, and click Verify. For most sites the best route is a Domain property verified with a DNS TXT record, because it covers every version of your address and doesn’t break when someone redesigns the site.

Verification is free and only proves you own the site; it doesn’t get you into Google. What it unlocks is the data and the tools. The steps below follow Google’s verification help, which every quote here comes from unless another source is linked.

Before you start: pick the property type

Search Console asks this first, and the answer decides which methods you get.

  • Domain property (example.com). Google’s property help says it includes all subdomains, http and https, and every path. It can only be verified with a DNS record, unless the site is on Blogger or Google Sites. Type the bare domain, no https:// and no www.
  • URL-prefix property (https://www.example.com/). It covers only addresses that start with exactly what you typed, so http:// and the non-www version are separate properties. It accepts every method: HTML file, HTML tag, Google Analytics, Google Tag Manager and DNS.

Pick Domain if you can log in to wherever your domain’s DNS is managed, and URL prefix only if you can’t. You can have both.

You also need three things in hand:

  • The right Google account. The person who verifies becomes a verified owner, the highest level of access. For a business site, use an account the business controls, not a freelancer’s personal Gmail.
  • Access to one of: your domain registrar or DNS host (GoDaddy, Namecheap, Cloudflare, Squarespace Domains and so on), your site’s code or file manager, or edit rights on the Google Analytics or Tag Manager account already on the site.
  • A public homepage. Every method except DNS checks your homepage as a logged-out visitor would see it. A password page, a “coming soon” lock or a trial site fails.

How to verify with a DNS TXT record, step by step

These steps work for any registrar. Say you run a made-up house cleaning company in Tampa with the domain at GoDaddy and the site on a builder you don’t fully control. DNS doesn’t care which builder you use.

  1. Add a Domain property. In Search Console, open the property menu, click Add property, choose Domain and type example.com.
  2. Look for your provider in the list. If Search Console shows your registrar, choose it and click Start verification. You sign in to the registrar and Google adds the record for you. If it shows the wrong provider, pick Any DNS provider and carry on below.
  3. Copy the TXT record. It’s one long string beginning google-site-verification=. Copy all of it, prefix included.
  4. Add it at your DNS host. On GoDaddy, the TXT record help path is Domain Portfolio, your domain, DNS, Add New Record, type TXT. Enter @ as the Name to put it on the root domain and paste the string as the Value. Other hosts label the field Host or Name, and Google says to leave it blank or set it to @, whichever your host’s help asks for.
  5. Click Verify. If it works, you’re the verified owner and data starts to appear within a few days.
  6. If it fails, wait, then retry. Google says that for a record you added by hand, “it can take up to two or three days for your provider to start serving the record.” Don’t add a second record in the meantime.
  7. Leave the record in place for good. In Google’s words: “To stay verified, don’t remove the DNS record from your provider, even after verification succeeds.”
step_01 Domain property example.com, no https, no www.
step_02 Copy the TXT value The whole string, prefix included.
step_03 Paste at the DNS host Host @ or blank, type TXT. check nameservers
step_04 Click Verify Retry over 2 to 3 days if needed.
step_05 Keep the record Delete it and you lose access.
fig 1 · the dns txt route from a new domain property to a verified owner

Step 4 is where most failures start, and the cause is usually that you added the record in the wrong place. A domain bought at one company often has its nameservers pointed somewhere else, such as Cloudflare or the website builder. The record only counts where the nameservers point. Your registrar’s domain page shows the nameservers; add the TXT record wherever they lead.

To check the record is live without guessing, open the Google Admin Toolbox Dig tool, type example.com (no https://) and click TXT. Google says the verification record looks like google-site-verification= followed by a string. If it’s not in the list, Google can’t see it yet either.

dig · example.com · TXT
example.com. 3600 IN TXT "v=spf1 include:_spf.google.com ~all"
example.com. 3600 IN TXT "google-site-verification=Xk3p...q9Tw" · yours, live
example.com. 3600 IN TXT "google-site-verification=a71B...mZ0c" · another owner, leave it
fig 2 · what a working txt lookup looks like for a made-up domain; values made-up and shortened

Several google-site-verification records can sit side by side, one per owner or Google service. Add yours as a new record and never overwrite another. (A few sites need a CNAME record instead. Google’s test: if the Dig tool finds no CNAME record for your domain, which is the most common case, use TXT.)

The other four methods compared

Without DNS access, a URL-prefix property gives you four more options. They’re tied to your site’s code, so a theme change can undo them.

Method What you add Property types Common way it breaks
DNS record TXT (or CNAME) record at your DNS host Domain and URL prefix Someone cleans up “unknown” DNS records
HTML file A file Google gives you, uploaded to the site root URL prefix only File deleted in a migration, or behind a redirect
HTML tag A google-site-verification meta tag in the homepage <head> URL prefix only New theme published without the tag
Google Analytics Nothing new, if the GA tag is already in the <head> URL prefix only GA tag moved or removed
Google Tag Manager Nothing new, if the container snippet is in place URL prefix only Snippet moved, or a data layer put before it

A few rules from Google’s help that decide whether each one works:

  • HTML file. Upload it unchanged so it opens at https://example.com/ followed by the file name. Search Console won’t follow a redirect to another domain to find this file, so a site that redirects everything elsewhere should use the tag instead.
  • HTML tag. It goes inside <head> on the page a logged-out visitor lands on. To check it’s there, open the live page source and search for google-site-verification.
  • Google Analytics. You need edit rights on the GA property and must use the same Google account in both tools. The gtag.js snippet has to be in the <head>, not the <body>.
  • Google Tag Manager. You need Publish or Admin permission on the container. The <noscript> part must sit immediately after the opening <body> tag, with nothing but HTML comments in between.

On Wix, Squarespace, WordPress and Shopify

Google’s advice for hosted sites is to check your platform’s help first.

  • Wix. Wix’s verification help uses the HTML tag on a URL-prefix property with your full address, including https://www. Paste the tag under SEO & GEO, then Tools and settings, then Site Verification. You need an upgraded site with a connected domain, and the site must be published with indexing turned on.
  • Squarespace. Squarespace’s Search Console help connects through Analytics, then Search keywords, then Connect. It says file upload doesn’t work there; to verify by hand, add a TXT record. Wait 48 hours after connecting a third-party domain before you verify.
  • WordPress. Google’s help points to Site Kit, its official plugin, which can handle verification during setup. Google notes Site Kit is “the only plugin that is officially sponsored by Google.” If you’d rather not add a plugin, the DNS route above works for any WordPress host.
  • Shopify. There’s no built-in connection. Use a TXT record in Shopify’s DNS settings or the tag in theme.liquid; the Shopify Search Console guide has the clicks.

Why verification fails, by error message

  • “Your verification DNS TXT record was not found.” The record isn’t being served yet, or it’s at the wrong DNS host. Check the nameservers, confirm it in the Dig tool, then wait a day or two.
  • “Your verification record did not match.” The value was cut short or pasted into the wrong field. For TXT, leave the host blank or @ and put the whole string in the value field.
  • “Your verification file was not found in the required location” or “has the wrong content.” The file was renamed, edited, or uploaded to a folder instead of the root. Open its URL in a private browser window.
  • “Meta tag not found/in the wrong location.” The tag is in the <body>, on a different page, or only in a draft. Google reads the homepage a logged-out visitor is sent to.
  • “Your meta tag is incorrect.” You pasted someone else’s tag, or an old one. Copy the tag from your own verification screen.
  • Analytics or Tag Manager permission errors. You’re signed in to Search Console with a different Google account from the one with GA edit or GTM Publish rights. Switch accounts.
  • Timeouts, DNS lookup errors, “invalid response.” Your server was down, slow, or behind a password. Fix access and retry.

If you still can’t verify, ask a current owner to add you as a user, as covered in how to add a user to Google Search Console.

✕ One fragile token
property: https://www.example.com/ only
method: HTML tag in the old theme
owner: web designer's personal Gmail
after redesign: tag gone, access expires
✓ Owned by the business
property: example.com (Domain)
method: DNS TXT, plus GA as a backup
owner: the owner's business account
after redesign: still verified
fig 3 · the made-up tampa cleaning company's search console setup before and after it took ownership back

Keeping it verified

Verification isn’t a one-time check. Google says Search Console “periodically checks if your verification token is still present and valid.” If it can’t confirm it, owners get a notice, and if nobody fixes it, permissions expire “after a certain grace period.” If every verified owner loses access, every user does.

Three habits keep that from happening:

  • Add a second method. Under Settings, then Ownership verification, you can add more. Google suggests it for exactly the case where someone “changes a template on your website that omits the tag.”
  • Know that child properties inherit. Once example.com is verified, a new URL-prefix property such as https://example.com/blog/ is verified automatically with the same method.
  • Clean up after a handover. If you take over a site, verify yourself first, then remove the previous owner’s token (their file, tag or DNS record). Otherwise they can click Verify again and they’re back.

Data collects from the moment anyone adds the property, even before verification. Once you’re in, submit your sitemap and follow the indexing setup for new sites. If the sitemap shows an error, sitemap couldn’t fetch covers each status.

FAQ

How do I verify my domain name on Google?

Add a Domain property in Search Console, copy the TXT record it gives you, and add it at your DNS host with the host field blank or @. Click Verify, and if it fails, give the record up to two or three days to go live before retrying.

Is it free to put your website on Google?

Yes. Google’s About Search Console page calls it “a free service,” and you don’t need it to be included in search results. Verifying gives you the reports and tools, not a ranking boost.

Can more than one person verify the same site?

Yes. Each verified owner uses their own token, by the same method or a different one. Just add yours alongside theirs and don’t overwrite another owner’s file, tag or record.

Add a backup method the day you verify

Use a Domain property and a TXT record, owned by an account the business controls. Then, while you’re in Ownership verification, add one more method, such as Google Analytics if it’s already on the site. That five-minute step is the difference between a redesign that changes nothing and one that locks everyone out of a year of search data.

Portrait of Liam Fraser
// written byLiam FraserSEO specialist with 3 years of experience. Liam writes about what works in local, technical and AI search.About SerpSurfers →