How to Verify Your Website in Google Search Console using HTML


For small business owners, getting your website seen on Google is paramount. Google Search Console is a free, essential tool that helps you monitor your site's performance in Google Search, identify issues, and ensure your content is discoverable. However, before you can use it, you need to prove to Google that you own the website – this is called "verification."

This guide will walk you through the most common and straightforward methods to verify your website in Google Search Console, ensuring you can start leveraging this powerful tool for your online presence.


What You'll Need:

Before you begin, make sure you have the following:

  • A Google account (the same one you'll use for Search Console)
  • Access to your website's files via FTP/cPanel File Manager, or the ability to edit your website's HTML (e.g., through a CMS theme editor)
  • The full URL of your website (e.g., https://www.example.com)

Step 1: Add Your Property to Google Search Console

Your first step is to tell Google Search Console about your website.

  1. Open your web browser and go to Google Search Console.
  2. Sign in with your Google account.
  3. On the welcome screen or from the property selector dropdown, click "Add Property".
  4. You'll see two options:
    • Domain: This verifies all subdomains and protocols (e.g., http, https, www, non-www). It requires DNS verification.
    • URL prefix: This verifies only the exact URL entered (e.g., https://www.example.com). This is simpler for most users and offers more verification methods.

    For most small business owners, we recommend starting with the URL prefix option as it's often easier to verify.

  5. Enter the full URL of your website (e.g., https://www.example.com) into the "URL prefix" box and click "Continue".

Step 2: Choose a Verification Method

Google will now present you with several ways to verify ownership. We'll cover the two most common and straightforward methods here.

Method A: HTML File Upload (Recommended for cPanel Users)

This is often the easiest method if you have access to your website's files via cPanel's File Manager or FTP.

  1. On the verification screen, select the "HTML file" method.
  2. Click the "Download file" button. This will download a small HTML file (e.g., googleXXXXXXXXXXXXXXXX.html) to your computer.
  3. Upload this file to your website's root directory.
    • Log in to your cPanel account.
    • Navigate to "File Manager".
    • Go to your website's public root directory (usually public_html or the document root for your domain).
    • Click "Upload" and select the HTML file you just downloaded. Ensure it's uploaded directly to the root, not inside any subfolders.
  4. Once uploaded, go back to Google Search Console and click the "Verify" button.
  5. If successful, you'll see a "Ownership verified" message.

Method B: HTML Tag

This method involves adding a meta tag to your website's HTML code, typically within the <head> section.

  1. On the verification screen, select the "HTML tag" method.
  2. Copy the provided meta tag. It will look something like this: <meta name="google-site-verification" content="your-unique-code" />
  3. Paste this tag into the <head> section of your website's homepage.
    • If you use a CMS like WordPress, you might find an option in your theme customizer, SEO plugin (e.g., Yoast SEO, Rank Math), or theme's header editor to add custom code to the <head> section.
    • If you have a static HTML website, open your index.html file (or your homepage file) and paste the tag just before the closing </head> tag.
  4. Save your changes to the website.
  5. Go back to Google Search Console and click the "Verify" button.
  6. If successful, you'll see a "Ownership verified" message.

Other Verification Methods:

While the above two are generally the simplest, Google also offers these options:

  • Domain name provider (Recommend): Involves adding a DNS TXT record to your domain settings. This is often used for "Domain" properties.
  • Google Analytics: If you already have Google Analytics installed and are using the same Google account for both, this can be a quick verification method.
  • Google Tag Manager: Similar to Google Analytics, if you're using Tag Manager with the same Google account.

Troubleshooting Tips:

  • "Verification failed" error:
    • HTML File: Ensure the file is uploaded to the *root* directory of your website, not a subfolder. Double-check the filename and content haven't been altered.
    • HTML Tag: Make sure the meta tag is placed correctly within the <head> section of your homepage and that there are no typos. Clear any website caching.
  • Incorrect Property Type: If you chose "Domain" but intended to use an HTML file/tag, you'll need to add a new "URL prefix" property.
  • Time Delay: DNS verification can sometimes take up to 48 hours to propagate.
  • Internet Connection: Ensure you have a stable internet connection when using Google Search Console.
  • Still having trouble? Contact EncodeDotHost support with details of the issue and any error messages you're receiving, and they'll be happy to assist further.

Once your website is verified, you can start exploring the wealth of data and tools available in Google Search Console to improve your site's performance in search results.


Was this answer helpful?

One email a month. Endless business benefits.

Don't miss out on WMTWWFY — the newsletter that keeps your website fast, safe, and visible.

« Back
Spinner
aluminium-anthropoid Security Check