Speak to a website designer — call Call 01793 239 239 Our team are here 9am to 4.30pm weekdays Client Connect

How to add Google Search Console to WordPress

Add your site to Google Search Console and verify it with a DNS record or an HTML tag, then submit your sitemap. Step-by-step instructions for WordPress websites.

The short answer: to add Google Search Console to WordPress, add your site as a property in Search Console and then verify that you own it. For most WordPress sites the easiest ways are to verify with a DNS record at your domain registrar, or to paste Google’s HTML tag verification code into your site using a plugin such as Site Kit by Google, Yoast SEO or Rank Math. Once you’re verified, submit your sitemap.

Before you start

  • A Google account.
  • Your website address, for example https://example.co.uk.
  • Administrator access to your WordPress site.
  • Access to the DNS settings for your domain, if you want to verify with a DNS record. Not sure who manages your DNS? Our WHOIS lookup shows where a domain is registered and our DNS lookup shows the records for it.

Option 1: verify with a DNS record (Domain property)

A Domain property covers every version of your website address, including http, https, www and subdomains, in one place. It can only be verified with a DNS record.

  1. Go to Google Search Console and sign in with your Google account.
  2. Add a new property and choose Domain.
  3. Enter your domain name, without https:// or www, and continue.
  4. Google shows you a TXT record. Copy it.
  5. Add that TXT record to your domain’s DNS settings, with the company that manages your DNS.
  6. Go back to Search Console and click Verify. DNS changes can take a while to appear, so if it doesn’t work straight away, try again later.

Option 2: verify with an HTML tag (URL prefix property)

A URL prefix property covers only the exact address you enter. It lets you verify by adding a small tag to your website, which suits WordPress sites well.

  1. In Search Console, add a new property and choose URL prefix.
  2. Enter your full website address, including https:// and www if your site uses it.
  3. Choose the HTML tag verification method and copy the tag Google gives you.
  4. Add the tag to the head section of your WordPress site. You can do this with a plugin. Site Kit by Google connects and verifies your site for you, and SEO plugins such as Yoast SEO and Rank Math have a field for the verification code in their settings, often labelled webmaster tools or site connections. If you’re comfortable with code, you can also add the tag to your theme’s header.
  5. Go back to Search Console and click Verify.

Other ways to verify

For a URL prefix property, Google also offers verification by uploading an HTML file to your site, or through Google Analytics or Google Tag Manager if you already use them on the site.

Submit your sitemap

Once your property is verified, submit your sitemap so Google can find your pages. In Search Console, open Sitemaps, enter your sitemap address and submit it. WordPress creates a basic sitemap at /wp-sitemap.xml by default, and SEO plugins often create their own, for example /sitemap_index.xml.

If verification doesn’t work

  • Clear your site’s cache after adding the tag, so Google can see it.
  • View your page’s source in your browser and check that the tag is in the head section.
  • For DNS verification, check the TXT record has been added exactly as Google shows it, and wait a little longer for it to take effect.
  • Check the address you entered matches your site, including https and www.

Once you’re verified, leave the verification tag or DNS record in place, as Google can check it again later. Data takes a few days to start appearing in Search Console.

Frequently asked questions

How do I add Google Search Console to WordPress?

Add your site as a property in Search Console and verify that you own it, either with a DNS record or by adding Google’s HTML tag to your site with a plugin. Then submit your sitemap.

Do I need a plugin to add Google Search Console to WordPress?

No. You can verify with a DNS record, or by adding the tag to your theme’s header. A plugin just makes it easier.

What is the difference between a Domain property and a URL prefix property?

A Domain property covers every version of your address, including http, https, www and subdomains, and is verified with a DNS record. A URL prefix property covers only the exact address you enter and can be verified in several ways, including an HTML tag.

Is Google Search Console free?

Yes, Google Search Console is a free Google service.

Can you set it up for me?

Yes. Contact our support team and we’ll set it up for you. If you already have it and want us to help, see how to give us access to Google Search Console.

Was this article helpful?

If it didn’t answer your question, contact our support team or call 01793 239 239 and we’ll be happy to help in any way we can.