Google Search Console on Shopify

How to verify Google Search Console on Shopify

What you’ll need

  • A Google account (the one you’ll use for Search Console)

  • Your domain’s DNS settings, or the theme code editor (Settings › Domains in Shopify, or your domain registrar; the HTML-tag method uses theme.liquid instead)

  • Your store out of private mode while Google checks (Online Store › Preferences › Store access › Private mode off)

Explain my indexing export

Option 1: Domain property (DNS TXT record)

  1. In Search Console click Add property, choose Domain and type your domain without https:// or www.
  2. Copy the TXT record Google shows.
  3. Domain bought through Shopify: go to Settings › Domains, click the domain, open DNS settings and add a TXT record with @ as the name and Google’s value.
  4. Domain from another registrar (GoDaddy, Namecheap, Cloudflare…): add the same TXT record in that registrar’s DNS settings.
  5. Back in Search Console click Verify. DNS changes can take a while; try again later if it fails.

Option 2: URL prefix (HTML tag)

  1. In Search Console click Add property, choose URL prefix and type https://yourdomain.com exactly as your store shows it.
  2. Choose HTML tag and copy the whole meta tag.
  3. In Shopify go to Online Store › Themes › ⋯ › Edit code and open layout/theme.liquid.
  4. Paste the tag on a new line right below <head> and click Save.
  5. Click Verify. Shopify’s Help Center suggests waiting 15 minutes and trying again if it fails.

Common problems

  • Verification fails while the store is in private mode: remove the password, verify, then turn it back on if you’re not launched.
  • You switched themes and lost verification: the HTML tag lives in the theme, so add it to the new theme too (or use the DNS method).
  • Wrong version: a URL-prefix property for https://www.… doesn’t cover https://yourdomain.com.

More guides