Verifying your website with Google is an essential step for all website owners. This process informs Google that you’re the rightful owner of the website, granting you access to valuable search analytics, sitemap submission capabilities, and more.
This guide will walk you through the steps to verify your website with Google using the ‘DNS TXT record’ method.
Step 1: Visit Google Search Console and add your domain
The first step to verify your website is to set up a Google Search Console account.
- Visit Google Search Console (https://search.google.com/search-console/welcome).
- In the ‘Domain’ box, type in your domain name.
- If you’re not already signed in to your Google account, you’ll be prompted to do so.
Step 2: Verify Your Website
After adding your website, you’ll need to verify it. We will use the ‘DNS TXT record’ method for this guide.
- On the verification page, you’ll see a ‘TXT record’. It will look something like this: “google-site-verification=XXXXXXXXXXXXXXXXX”.
- Copy the TXT record provided by Google.
Step 3: Add the TXT Record to Your DNS Configuration
Now, you’ll need to add the copied TXT record to your website’s DNS configuration.
- Log in to your website hosting control panel.
- Navigate to Domains > DNS Zone Editor.
- Create a new TXT record. In the ‘Value’ or ‘Data’ field, paste the copied TXT record from Google. Leave the ‘Host’ field as ‘@’ or empty unless specified otherwise by your DNS provider.
Note: If you use an external DNS provider such as a CDN (Cloudflare) – make sure to apply the TXT record there.
Step 4: Verify the DNS Record
The changes in DNS records can take some time to propagate across the internet. Google recommends waiting for a few hours before proceeding to the next step.
Once you believe the DNS changes have propagated:
- Return to Google Search Console.
- Click on ‘Verify’.
If everything has been done correctly, you’ll see a message stating that your website is now verified. If there are any issues, Google will provide an error message with instructions to fix the problem.
That’s it! You’ve successfully verified your website with Google. Now you can leverage Google Search Console’s tools to optimize your site’s performance. Keep the TXT record intact to maintain your verification status.