skip to Main Content

How to verify a domain using Cloudflare in Google Search Console

If you want to understand how your website is performing in Google’s organic search results, or you want to know opportunities you have, look no further than Google Search Console – that’s exactly what it does. As I shared in the article, how to add your WordPress website to Google Search Console, GSC lets you do so many things, including:

  • Understand how your website is performing in Google Search
  • Get insights search analytics like impressions, clicks, and other metrics
  • See if your website has been crawled and indexed
  • View issues or errors that are impacting your website’s presence in search results
  • Determine if search enhancements like structured data, AMP, or others have been indexed by Google

Last year, Google announced domain-wide data for Search Console. To set this for a domain or subdomain, you’ll need to have DNS access. In this article, I’ll share how I set this up for our website with Cloudflare.

We use Cloudflare’s CDN and love it. Why? It’s free, scales easily, and integrates well with WordPress. If you plan on using both Cloudflare and Google Search Console, you’ll want to verify your domain with Google Search Console. The data is worth it! To get there, just follow the steps below.

How to set up a domain that’s using Cloudflare in Search Console

I love seeing screenshots with steps, so I’ve included them in this guide. With any of the screenshots, just click on the image to access a high-resolution picture.

To set up a domain using Cloudflare in Search Console, follow these steps:

  1. In your web browser, visit Google Search Console and click Start Now. You’ll be presented with this screen:
    Google Search Console welcome screen
  2. Under Domain, enter the web address of your website.
    Domain verification in Google Search Console
  3. Click Continue.
  4. Under step 2 of the verification steps, select the Copy button to copy the Google site verification code:
    Domain verification code in Google Search Console
  5. In a new browser tab or window, go to Cloudflare.
  6. Sign up or log in to your Cloudflare account.
  7. Select the domain you’re working with.
    Cloudflare dashboard
  8. Select DNS from the top menu.
    Cloudflare DNS section
  9. Select the +Add record button.
    Add a record to Cloudflare DNS
  10. Set the Type to TXT.
  11. In the Name field, enter “@”.
  12. Set TTL to Auto.
  13. In the Content field, paste the site verification code you copied earlier. Google site verification code in Cloudflare DNS
  14. Select the Save button.
  15. Check to make sure the TXT record was saved.
  16. Return to Google Search Console and select Verify.
    Verification confirmation in Google Search Console
  17. When prompted, click Go To Property.
    Ownership verification confirmation in Google Search Console
  18. Start using Google Search Console!

Wrap up

Using Cloudflare has a lot of benefits and setting up domain verification in Google Search Console provides lots of benefits to webmasters. Now you know how to get your domain verified in Search Console when using Cloudflare as a CDN.

If this post helped you, make sure you subscribe to our mailing list to get other helpful SEO tips sent straight to your inbox. To subscribe to our mailing list, sign up on our blog.

Josh Gellock

Josh is the principal SEO consultant at Expander Digital, an SEO studio he founded in 2014. He's been in the SEO space since 2011 and helps businesses manage their SEO through projects, consultations, and campaigns. When he’s not meeting with clients, you can find Josh spending time with his children or on a bike.

This Post Has 13 Comments

  1. Very clear guide and super helpful. I was stumped thinking I had to do this through namecheap, but I was able to get search console installed in about four minutes with your guide. Thanks!

  2. Hey, I had added the file to the DNs, as you directed. But at the time of verification search console is showing red box with no verification

  3. Thank’s a lot! I hope it will help with suddenly decreased stats in google search console 3 days after starting using Cloudflare.

Leave a Reply

Your email address will not be published. Required fields are marked *