Google site verification

Google requires domain ownership verification for some of the services they offer. If you have registered your domain with DreamHost or manage DNS with DreamHost, there are several options that Google provides to verify your domain name with them.

How can I verify my domain with Google?

As of March 1, 2015, Google offers four different options to verify your domain with them. The methods below are all taken from Google’s documentation on domain verification:

  1. Add a meta tag to your homepage (proving that you have access to the source files). To use this method, you must be able to edit the HTML code of your site's pages.
  2. Upload a Google HTML file to your server. To use this method, you must be able to upload new files to your server.
  3. Verify via your domain name provider. To use this method, you must be able to sign in to your domain name provider (for example: DreamHost) and add a new DNS record.
  4. Add the Google Analytics code you use to track your site. To use this option, you must be an administrator on the Google Analytics account, and the tracking code must use the new asynchronous snippet.

Verification methods

Method 1: Adding a meta tag to your homepage

This method requires that you:

  • Add a line of code to your site files, and is a moderately advanced method of verifying your domain.
  • Sign up for a hosting plan on your DreamHost account.

Once you retrieve this line of code from Google’s Webmaster Tools panel, manually edit your current website code by adding Google's line of code to it in order to use this method of verification.

To review further information, click the following link from Google for further instructions:

Method 2: Uploading an HTML file

This method requires that you:

  • Sign up for a hosting plan on your DreamHost account.
  • Download an HTML file from Google’s Webmaster Tools panel, and upload it via FTP to your DreamHost server.
  • Manually upload this file.

It is the fastest way to verify your domain with Google.

To review further information, click the following link from Google for further instructions:

Method 3: Verifying via your domain name provider

This method 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.

Google will provide you with the option of using a TXT or CNAME record to add to your domain in your DreamHost panel. Using the TXT record is the simplest option in this case.

The TXT record looks similar to “google-site-verification=1234-abcd-5678-EFGH”. Follow these steps to add this record to your domain in your panel:

  1. Navigate to the (Panel > ‘Domains’ > ‘Manage Domains’) page.
  2. Find your domain name on this page, and then click the ‘DNS’ link directly under the domain name.
    When the 'Add a custom DNS record...' page opens, enter your TXT verification code:
    01 Custom DNS TXT record.png
  3. Click the Add Record Now! button to save this TXT record.

You can also verify using a CNAME record, however it's slightly more advanced. Google will provide you with two items if you choose the CNAME verification option:

  • CNAME Label / Host: 1234abcd.example.com (example)
  • CNAME Destination / Target: ab-cdefghijk.dv.googlehosted.com (example)

If you choose to use the CNAME record to verify instead, your custom DNS record in your panel is entered a bit differently:

02 Google Site Verification add cname record.fw.png

Once you add a TXT or CNAME record, it can take up to 72 hours for Google to verify the new DNS record in their system. Google also recommends that you leave this record on the domain, even after it has been verified.

Method 4: Adding the Google Analytics code you use to track your site

This method requires that you have a Google Analytics account. To use this option, you must be an administrator on the Google Analytics account and the tracking code must use the new asynchronous snippet.

To review more information about Google Analytics, click the following link:

See also

Did this article answer your questions?

Article last updated .