How To Verify A WordPress Site With Google search Console

If you have a WordPress site or a blog you can easily verify your WordPress site in Google Search Console with just a few clicks. Here is a step-by-step guide on how to verify a WordPress site with the Google Webmaster tool.

Adding and verifying your WordPress site with Google Search Console (formerly Google Webmaster Tools) is One of the most important steps in optimizing your WordPress site for SEO

Check out: How To Verify Blogger Blog In Google Search Console

Why do you need to verify site ownership with Google?

Google is a search engine giant and letting Google know that you are the owner of a particular Blog or website, gives you many advantages.

Google Search Console offers specific webmaster tools to help website owners monitor and maintain their search presence and rankings.

What is a Google search console?

Google Search Console is a free tool offered by Google to help website owners monitor their website’s presence in Google search results.

:: You get direct access to search engine traffic analysis, bots crawl status
:: View and fix indexing problems
:: View Google Search traffic data for your site.
:: Receive alerts when there are indexing, spam, or other issues on your site.
:: Search queries, website security issues.
:: AdSense recommends using Search Console tools to improve your site visibility and increase traffic to your site.
:: Submit your sitemap and many more. These reports are of tremendous help to improve your site’s performance.

If you are serious about WordPress SEO, then the first thing you need to do is to add and verify your site with the Google search console from day one.

In this guide, you will learn how to easily add and verify your WordPress site in Google Search Console also known as Webmaster Tools.

Having said that, let’s take a look at how to easily add your site to Google Search Console.

Check out: Google AdSense approval process for new sites.

Adding Your WordPress Site to Google Search Console

First, you need to visit the Google Search Console website and click on the “Start now” button.

verify wordpress site with google search console

 

Next, you sign in to the Google search console with your Google / Gmail account.

On the webmaster’s tool page:: Click on Add property ( earlier it used to be Add a Site).

add a property in google search console

Once logged in, you’ll be asked to enter your website URL.

There are two methods for site verification: Domain name or URL prefix. It is recommended to use the URL prefix method because it is more flexible.

verify wordpress site with google search console

Keep in mind that Google considers HTTP and HTTPS as two different protocols. Google considers the following Site address URL of the same website as different websites.

https://www.example.com
https://example.com.
http://example.com
http://www.example.com

You need to enter the correct Site Address URL used by WordPress.

If you are unsure, then there is an easy way to find out the exact URL you need to enter. Simply log in to your WordPress admin area and go to the Settings » General page.

There you will see your website’s URL in the Site address (URL) field.

site address URL

After entering your correct website address in the Google webmaster tools setup wizard, click on the ‘Continue’ button to go to the next step.

Now, you’ll be asked to verify ownership of your website. There are several ways to do that, but we will show the HTML tag method because it is the easiest one.

html tag code

Go ahead and click on the HTML tag tab to expand it and then copy the code inside it.

Do Not Log Out of Google Search console Page now keep the page open.

Next, you’ll need to add this Google site verification meta tag to your WordPress site, so that the Google bot can verify that you are the owner of the website.

There are three easy methods to paste the Google verification code into your WordPress site.

Method 1: Paste the tag code in the header.php file of your theme

Many WordPress tutorials may not advise you to paste the tag in the header.php file of your theme. This is because if your theme gets updated the header.php file also gets updated and you lose the verification code.

You can use this method if you are using a child theme. On your WordPress dashboard go to > Appearance > theme editor > click to open the header.php file of the child theme. Paste the HTML tag in the child theme’s header.php file between the <head> and </head> tag and update the file.

Now go back to the google search console page and click on Verify tab. Google bot will crawl your Blog/website and will display this message “Ownership verified” and you are done.

verify wordpress site with google search console

The advantage of this method is that you don’t need to install any plugin and even if your theme gets updated, the child theme will not change and the Google site verification code will remain.

Since Google periodically checks for the HTML tag and if it cannot find the verification tag, will disable your access to the site data in the search console

If you do not know about WordPress child themes read our guide on how to create a child theme for any WordPress theme.

WordPress child theme by default creates the header.php file of the parent theme. If you don’t find it, read the guide on how to duplicate files from parent theme to child theme.

Method 2: Using a plugin to inject it into the header

In this method, you will need to install the plugin Insert Headers and footers. After installation launch it.

Insert Headers and Footers is a simple plugin that lets you insert code like Google Analytics, custom CSS, Facebook Pixel, and more to your WordPress site header and footer. Without editing a single code of your theme.

Check out: How to host Google analytics locally in WordPress

The plugin has a very simple interface. In the settings page paste the Google verification code in the box marked as “Scripts in header” then click on save that’s it.

header and footer plugin

Don’t forget to click on the ‘Save Changes’ button to store your changes.

Now go back to the Google search console page where you copied the HTML tag code earlier and then click on verify. Google Search Console will now look for the HTML tag in your website code and will show you a success message.

Method 3: Pasting the HTML tag code in the Yoast SEO plugin.

Yoast is a very popular and widely used SEO plugin for WordPress sites. If you have installed the plugin then go to SEO > General > Webmaster tools > and paste the code in the Google verification code box.

yoast webmaster tool

Go back to the Google search console and click on Verify.

Conclusion

You can use any of the above three methods you are comfortable with. I prefer the first method, using a child theme.
That’s all. You have successfully added your site to the Google Search Console (Webmaster tools). You can now click on the ‘Go to Property’ link to visit your Google Search Console dashboard.