Google site verification

Overview

Google requires domain ownership verification for some of the services they offer. If you have registered your domain, manage your DNS, or host your site with DreamHost, there are several options Google provides to verify your domain name as described in Google’s documentation on domain verification.

You can use any method mentioned below. It's also recommended to add more than one to ensure your site remains verified in case a method is accidentally removed.

Google site verification is different from your Google Analytics tracking ID#. View the following article for information on how to add your Analytics tracking code to your site:

Method 1 — Uploading an HTML file

This method downloads an HTML file from your Google console and uploads it to your DreamHost website. To use this method, your site must be hosted at DreamHost.

To get the step-by-step of this process, please visit the following  article:

Method 2 — Add a meta tag to your homepage

This method adds a line of code to your site's homepage file. To use this method, your site must be hosted at DreamHost, and you must be able to edit the HTML code of your site.

For more information about this process, please visit the following article:

Method 3 — Add Google Analytics code

This method adds Google Analytics code to your site. To use this option, you must be an administrator on the Google Analytics account. You can use either your analytics.js or gtag.js snippet.

To get the step-by-step of this process, please visit the following article:

Method 4 — Google Tag Manager

This method searches for a Google Tag Manager Snippet added to your website. If the page does not have a snippet, you must add one (which may require creating a Tag Manager account if you don't already have one).

To get the step-by-step of this process, please visit the following article:

Method 5 — TXT or CNAME records

This method adds a DNS record to your DreamHost panel. You must first log into your Google search console to retrieve the record to verify your site, it requires that your domain is using DreamHost’s nameservers, but you do not need to have an active hosting plan to verify your domain using this method.

To learn more about this process, please visit the following article:

Adding the TXT record to your DreamHost panel

  1. Navigate to the Manage Websites page.
  2. Click the Manage button to open the Domain Settings page, which allows you to adjust various settings for your site.
    • If in Grid view, click the Manage button at the bottom of the website box.
    • If in List view, click the Manage button at the far right of your domain name.
  3. Click the DNS tab.
  4. Click the Add Record button.
  5. Click the Add button in the TXT record section.
  6. Leave the Host field blank.
    Google txt record
  7. Enter the Google code into the TXT Value field.
  8. Click the Add Record button to save. 
  9. Click the Add Record Now! button to save this record.
  10. Click the Verify button back in your Google console.

At first, you may see the verification failed because the record has not been updated online yet. This record could take up to 4hrs to propagate online, but it's usually available sooner.

Check back in a few hours and Google will verify the TXT record.

Adding the CNAME record to your DreamHost panel

  1. Navigate to the Manage Websites page.
  2. Click the Manage button to open the Domain Settings page, which allows you to adjust various settings for your site.
    • If in Grid view, click the Manage button at the bottom of the website box.
    • If in List view, click the Manage button at the far right of your domain name.
  3. Click the DNS tab.
  4. Click the Add Record button.
  5. Click the Add button in the CNAME record section.
    Google verification add CNAME
  6. In the Host field, enter the CNAME Label text.

    Do not add the period at the end as shown in the Google console.

    Do not add the primary domain printed in the CNAME Label field. For example, if you are adding this for a subdomain such as blog.example.com, only copy in the CNAME Label and subdomain portion while excluding the primary domain of example.com.

    For example, in the image above, the full record is:

    ##########.blog.example.com

    You would then only enter ##########.blog into the Host field.

  7. Enter the CNAME Destination text in the Points to field.
  8. Click the Add Record button to save. 
  9. Click the Add Record Now! button to save this record.
  10. Click the Verify button back in your Google console.

At first, you may see the verification failed because the record has not been updated online yet. This record could take up to 4hrs to propagate online, but it's usually available sooner.

Check back in a few hours and Google will verify the CNAME record.

See also

DreamHost Links

Third-party links

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?