How to verify site ownership with Google

This article describes how you can verify website ownership with Google. To use various Google services with a particular domain, you must first verify that you have control over what you claim to own.

Before you can verify site ownership with Google, you must set up a Google Search Console account for your domain. To do this, please visit

Verifying site ownership

There are several methods you can use to verify site ownership with Google.

You only need to use one of the following methods. You do not need to follow all of them.
Method #1: HTML file upload

You can upload a special HTML file to your site to verify site ownership. For information about how to do this, please visit,html-file-upload.

Method #2: HTML tag

You can include a special <meta> HTML tag in a specific site page to verify site ownership. For information about how to do this, please visit,html-tag.

Method #3: DNS record

You can add a TXT or CNAME DNS record to verify site ownership:

  • Use a CNAME record to verify a subdomain (for example,, or a domain that is itself defined with a CNAME record.
  • Use a TXT record to verify any other type of domain, such as your primary domain (for example, This is the more common scenario, and is described below.

To add a TXT record in cPanel, follow these steps:

  1. Log in to cPanel.
    If you do not know how to log in to your cPanel account, please see this article.
  2. In the DOMAINS section of the cPanel home screen, click Zone Editor:

    cPanel - Domains - Zone Editor icon

  3. Under DOMAINS, locate the domain for which you want to add the TXT record, and then click Manage:

    cPanel - Zone Editor - Manage domain

  4. Next to Add Record, click the down arrow, and then click Add “TXT” Record:

    cPanel - Zone Editor - Add record

  5. In the Name text box, type the fully-qualified domain name (FQDN) for the record (for example,
  6. In the TTL text box, type the time-to-live value in seconds.

    If you are unsure of the value to specify, type 14400, which is four hours.
  7. Confirm that the Type list box is set to TXT.
  8. In the Record text box, paste the unique TXT record value that Google Search Console displays for your account.
  9. Click Add Record. cPanel adds the record.
  10. In Google Search Console, click Verify. Google checks that the unique value matches the TXT record.
Method #4: Google Analytics tracking ID

You can use Google Analytics to verify site ownership. To use this method, you must have a Google Analytics account configured. By including your unique tracking ID in your website pages, you prove that you control the site. For more information about Google Analytics, please visit

More Information

For more information about Google site verification, please visit

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.