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:
- HTML file upload — Search Console Help
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:
-
HTML tag — Search Console Help
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:
-
Google Analytics tracking code — Search Console Help
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:
- Google Tag Manager — Google Search Console
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:
- Domain name provider — Google Search Console
Adding the TXT record to your DreamHost panel
View the following article for instructions on how to add a TXT record:
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
View the following article for instructions on how to add a CNAME record:
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.
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
- HTML file upload — Search Console Help
- HTML tag — Search Console Help
- Google Analytics tracking code — Search Console Help
- Google Tag Manager — Google Search Console
- Domain name provider — Google Search Console