SEO & Traffic

How to Add Your Website to Google Search Console and Verify It

A simple guide to adding your site to Google Search Console, choosing the right property type and fixing verification errors.

Genius GuruFounder, GeniusGuru 7 min read
Quick answer:
  • Go to Google Search Console, click + Add property and choose Domain or URL prefix.
  • A Domain property covers your whole site (http, https, www, non-www and subdomains) but can only be verified with a DNS record.
  • A URL prefix property covers one exact address and can be verified with an HTML file, HTML tag, Google Analytics or Google Tag Manager.
  • Keep the verification record or file in place forever. If you remove it, you lose access.

You have built a new website and want Google to find it. Every guide tells you to "add your site to Search Console", but then you see two property types, five verification methods and words like DNS and TXT record. It is easy to get stuck.

This guide explains which property type to pick, how each verification method works and how to fix the most common errors, in plain steps.

What is Google Search Console and why add your website?

Google Search Console is a free tool from Google. It shows which search terms bring people to your site, which pages are indexed and which pages have problems. It also lets you submit a sitemap and ask Google to crawl new pages.

Adding your site does not change your rankings. Google's help page on adding a website property says adding a property does not affect your site's presence on Google Search. It only gives you the data and tools to manage it.

Domain vs URL prefix property: which should you choose?

Domain propertyURL prefix property
Example you typeexample.comhttps://www.example.com/
What it coversAll versions: http, https, www, non-www and all subdomainsOnly URLs that start with that exact address
VerificationDNS record onlyHTML file, HTML tag, Google Analytics, Google Tag Manager or DNS
Best forOwners who can edit DNS settings at their domain provider or hostOwners who cannot edit DNS, or who want data for one section only

For most new blogs and script-based websites, a Domain property is the better choice. You see all your data in one place and do not need a separate property for www and non-www.

Choose URL prefix if you cannot get access to your DNS settings, or if DNS verification keeps failing and you need access today. You can add both types for the same site.

Note: When you type a Domain property, do not add https://, www or any path. Just type the bare domain, such as example.com.

How to add a Domain property and verify it with DNS

Step 1: Start adding the property

  1. Open Google Search Console and sign in with the Google account you want to use for the site.
  2. Click the property selector at the top left and choose + Add property.
  3. In the Domain box, type your domain, for example example.com, and click Continue.
  4. Search Console shows a TXT record that starts with google-site-verification=. Click Copy.

Step 2: Add the TXT record at your DNS provider

Your DNS is managed wherever your nameservers point. If you pointed your domain to your hosting with nameservers, DNS is usually managed in your hosting panel. If not, it is at your domain registrar. Our guide on nameservers vs A record explains how to tell.

  1. Log in to the panel that manages your DNS.
  2. Open the DNS settings. In cPanel this is often called Zone Editor; in hPanel it is usually DNS / Nameservers.
  3. Add a new record. Set Type to TXT.
  4. Set Name or Host to @ (this means the root domain). Some panels want it left blank.
  5. Paste the full verification text into the Value or TXT data field.
  6. Leave TTL at the default and save.

Step 3: Click Verify

Go back to Search Console and click Verify. If it fails, DNS changes may need more time to spread. Click Verify later, wait a few hours and try again from the property selector.

Tip: Do not delete your old TXT records when you add this one. A domain can have many TXT records, and some are used for email. Just add a new one.

How to add a URL prefix property and verify it

  1. Click + Add property.
  2. In the URL prefix box, type the exact address people see, including https:// and www if your site uses it. For example: https://www.example.com/.
  3. Click Continue. Search Console suggests a method and lists others under "Other verification methods".

Google's verification help page lists these methods. Pick the one that is easiest for you.

Option A: HTML file upload

  1. Download the HTML file Search Console gives you. Do not rename it or change it.
  2. Open File Manager in your hosting panel and go to your site's root folder (often public_html).
  3. Upload the file there.
  4. Open https://www.example.com/google…html in your browser to confirm it loads.
  5. Click Verify.

Option B: HTML tag

  1. Copy the meta tag that starts with <meta name="google-site-verification".
  2. Paste it inside the <head> section of your home page, before </head>. Many PHP scripts and WordPress SEO plugins have a field for header code, so you may not need to edit files.
  3. Clear any cache, then click Verify.

Option C: Google Analytics or Google Tag Manager

If your site already has Google Analytics or Google Tag Manager installed, and you use the same Google account with the right access, you can verify with one click. If you have not set up Analytics yet, see our guide on setting up Google Analytics 4 on a blog.

Blogger and Google Sites

If your site is on Blogger or Google Sites and you sign in with the account that manages it, Google says verification is automatic.

Search Console verification failed? Common errors and fixes

ProblemLikely causeFix
DNS verification failedRecord not spread yet, or added at the wrong DNS panelWait a few hours; confirm where your nameservers point and add the record there
TXT record found but wrongExtra spaces, missing part of the text, or the domain repeated in the Name fieldDelete it and paste the value again; use @ as the name
HTML file not foundUploaded to the wrong folder or renamedUpload the original file to the site root and open its URL in a browser
Meta tag not foundTag placed in the body, or a cached page is being servedPut it in the head of the home page and clear cache
Wrong propertyAdded http:// when the site uses https://, or missed wwwAdd the exact address your site redirects to
Warning: Never remove the verification file, tag or DNS record after you are verified. Google says verification lasts only as long as it can find your token. If you redesign or reinstall your site, add the tag back.

What to do right after you verify your site

  1. Submit your sitemap. Go to Sitemaps, enter your sitemap URL and click Submit. Our sitemap submission guide shows the steps.
  2. Inspect your home page. Paste your home page URL into the search bar at the top to check whether Google can see it.
  3. Wait for data. Google says data should appear within a few days. A brand-new site may show very little at first.
  4. Add other people safely. To give a team member access, use Settings > Users and permissions instead of sharing your Google password.
  5. Check Page indexing weekly. It shows which pages are indexed and which have problems.

Once data starts coming in, our guide to the Search Console Performance report explains what clicks, impressions and position mean.

Does every new website need Search Console?

Yes. Whether you run a personal blog, a Shayari site, a news site or an online store, Search Console is the only direct line between you and Google Search. It is also helpful before you apply for AdSense, because you can confirm that Google is indexing your pages.

If you are building a new site from a ready-made script, set up Search Console on the same day you go live. Many of the scripts in our marketplace include a sitemap and a place for header code, which makes verification and sitemap submission quicker.

Final word

Adding your website to Google Search Console takes about 10 minutes once you know which option to pick. Use a Domain property with a DNS TXT record if you can, or a URL prefix property with an HTML tag or file if you cannot. Keep the record in place, submit your sitemap and check the reports every week.

Next step: log in to your DNS panel today, add the TXT record and verify your site. Then submit your sitemap before you publish your next post.

Frequently asked questions

Should I choose Domain or URL prefix in Search Console?

Choose Domain if you can edit your DNS settings, because it covers all versions of your site in one property. Choose URL prefix if you cannot access DNS.

How long does DNS verification take?

It often works within minutes, but DNS changes can take longer to spread. If it fails, click Verify later and try again after a few hours.

Can I remove the verification code after my site is verified?

No. Google says verification lasts only as long as it can find your token, so keep the DNS record, HTML file or meta tag in place.

Does adding my site to Search Console improve rankings?

No. Google says adding a property does not affect your presence in Search. It gives you data and tools to find and fix problems.

Tools mentioned in this post

Genius Guru

Founder of GeniusGuru. Teaches AdSense, Facebook monetization, YouTube growth and AI tools to learners across India, and builds the ready-made website scripts sold on the GeniusGuru marketplace.

More about GeniusGuru →