Perform Google Search Console Verification with Discourse

:bookmark: This guide describes how to perform Google Search Console (f.k.a Google Webmaster Tools) verification with Discourse. You can verify domain ownership using three methods - by using the site setting in your forum, creating a TXT DNS record, or by adding an HTML tag.

:person_raising_hand: Required user level: Administrator

Verifying your Discourse site with Google Search Console (GSC) ensures that Google can access your site’s data for accurate search indexing and analysis. This guide details three methods to verify domain ownership:

  • Using the site setting (Recommended)
  • Creating a TXT DNS record
  • Adding an HTML tag

Setting up a new property in Google Search Console

  1. Navigate to Google Search Console and set up a new property by entering the URL of your forum:

  2. Google Search Console will attempt to verify your ownership of the domain. Once this fails, you will be presented with a list of verification methods:

Verifying Domain Ownership

Method 1: Using the site setting (Recommended)

  1. In the verification options, select “HTML Tag” to generate a unique verification tag.

  2. From the HTML tag that Google provides, copy only the verification token:

    <meta name="google-site-verification" content="THIS_IS_THE_TOKEN_YOU_NEED">
    
  3. On your site, go to your admin dashboard, find the “Community” section on your admin sidebar, and select “Analytics & SEO”

  4. Find the Google site verification token site setting and paste the verification token you copied (only the content value, not the entire HTML tag)

  5. Select the :white_check_mark: button to save the change

  6. Return to GSC and click “Verify”

  7. Your domain should now be verified

Method 2: Creating a TXT DNS record

  1. In the verification options, select “Domain name provider”.

  2. Copy the string Google provides: google-site-verification={string_here}.

    1. Log into your DNS provider.
    2. Go to where you manage DNS entries for your domain.
    3. Create a new TXT entry:
      • Ensure the hostname (or name) is either the sub-domain of your forum or @ if it is on your root domain.
      • Paste the value exactly as provided by GSC.
    4. Save the entry.
  3. Return to GSC and click “Verify” under Domain Name Provider.

  4. Your domain should now be verified.

Method 3: Manually Adding an HTML tag

  1. In the verification options, select “HTML Tag” to generate a unique verification tag:

  2. On your forum, go to /admin/config/customize/themes and select “Components”:

  3. Create a new theme component by clicking “Install” → “Create new”. Name it meaningfully, e.g., “GSC Verification”, then click “Create”:

  4. Attach this new component to all of your themes.

  5. Select “Edit CSS/HTML” under the “Custom CSS/HTML” section:

  6. Paste the HTML tag provided by GSC into the <head> section, then save the changes.

  7. Return to GSC and click “Verify”.

  8. Your domain should now be verified.

Last edited by @Moin 2026-04-22T04:56:09Z

Last checked by @SaraDev 2025-10-09T19:18:36Z

Check documentPerform check on document:
21 Likes