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)
Option 1: Domain property (DNS TXT record)
- In Search Console click Add property, choose Domain and type your domain without https:// or www.
- Copy the TXT record Google shows.
- 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.
- Domain from another registrar (GoDaddy, Namecheap, Cloudflare…): add the same TXT record in that registrar’s DNS settings.
- Back in Search Console click Verify. DNS changes can take a while; try again later if it fails.
Option 2: URL prefix (HTML tag)
- In Search Console click Add property, choose URL prefix and type https://yourdomain.com exactly as your store shows it.
- Choose HTML tag and copy the whole meta tag.
- In Shopify go to Online Store › Themes › ⋯ › Edit code and open layout/theme.liquid.
- Paste the tag on a new line right below <head> and click Save.
- 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.