How to verify your domain with Google Search Console
Help centreOn this page
This guide shows how to add your website to Google Search Console and prove you own it with a DNS record in cPanel. Once verified, you can see how your site appears in Google search and tell Google about your pages.
Domain property or URL prefix
When you add a site, Search Console asks you to pick a property type.
- Domain. Covers the whole domain in one go: http:// and https://, with and without www, and every subdomain. It can only be verified with a DNS record. This is the one we suggest.
- URL prefix. Covers only the exact address you type, such as https://www.yourdomain.co.uk. It offers other ways to verify, like uploading a file or adding a meta tag, but you may end up needing several properties for one site.
The rest of this guide uses a Domain property.
Get your TXT record from Google
- Go to Google Search Console and sign in with the Google account you want to manage the site with.
- Open the property menu at the top left and click Add property.
- Under Domain, type your domain without http:// or www, for example yourdomain.co.uk.
- Click Continue.
- Google shows a TXT record starting with
google-site-verification=. Click Copy.
Leave this window open. You’ll come back to it to finish.
Add the TXT record in cPanel
- In a new tab, log in to cPanel.
- Open Zone Editor in the Domains section.
- Next to your domain, click Manage.
- Click the arrow next to Add Record and choose Add TXT Record.
- In Name, enter your domain followed by a full stop, for example
yourdomain.co.uk.(cPanel usually fills this in for you). - In Record, paste the whole value you copied from Google, including the
google-site-verification=part. - Click Save Record.
It’s fine to have other TXT records on the domain, such as your SPF record. Don’t edit or replace them. Add Google’s record as a separate one.
For a general walk through of the screen, see how to edit DNS records in cPanel.
Verify in Search Console
- Go back to the Search Console window.
- Click Verify.
If your domain uses our nameservers, Google can often see the record within a few minutes. Sometimes it takes longer. If Google says it couldn’t find the record, wait an hour and click Verify again. In rare cases it can take up to a day.
Keep the TXT record in place after verifying. Google checks it again from time to time, and removing it can cause you to lose access.
Submit your sitemap
A sitemap is a list of the pages on your site. Giving it to Google helps it find new and updated pages.
- Find your sitemap address. On WordPress 5.5 or later it’s usually
https://yourdomain.co.uk/wp-sitemap.xml. SEO plugins often create their own, commonly at/sitemap_index.xmlor/sitemap.xml. Open the address in your browser to check it loads. - In Search Console, pick your property and click Sitemaps in the left menu.
- Type the end of the sitemap address into Add a new sitemap and click Submit.
Google will show the status. It may say Couldn’t fetch at first. Check back after a day or two.
If it doesn’t work
- Verification keeps failing. Make sure the record is on the right domain and that you pasted the whole value, with no spaces at the start or end.
- Your domain uses Cloudflare or another DNS provider. Records added in our Zone Editor won’t be used. Add the TXT record wherever your DNS is managed. See how to use Cloudflare with your hosting.
- You’re not sure which nameservers your domain uses. See how to check DNS propagation to look up the current records.
- Someone else set up Search Console before. Ask them to add you as an owner from Settings, then Users and permissions, instead of verifying again.
Still stuck? Open a support ticket and we’ll help.
Search for a .co.uk, .uk, .com and more, and manage it next to your hosting.