Guide

How to connect Shopify to Google Search Console

Search Console is free, and it's the only place Google tells you which searches show your store and how often people click. Setting it up takes about 15 minutes. Here's how to do it on Shopify, and which method to pick.

Google Search Console is Google’s free tool that shows which searches find your store and whether your pages are indexed. Add your store to Search Console as a Domain property and verify it with a TXT record in your DNS settings. That covers every version of your address and doesn’t touch your theme. Then submit /sitemap.xml, wait a few days, and start with the Performance and Pages reports.

Before you start

Search Console is Google’s free tool for site owners. It shows the searches your pages appear for, how many people saw and clicked them, and whether Google has indexed your pages. You can’t get that search data anywhere else.

Have these ready:

  • A Google account. Use one your business controls, not a freelancer’s personal account, so you don’t lose access later.
  • A custom domain connected to Shopify, such as fernandthistle.co.uk. You can’t add DNS records to a myshopify.com address.
  • Access to wherever your domain’s DNS is managed. If you bought the domain through Shopify, that’s your Shopify admin. If you bought it elsewhere, it’s that provider’s account.
  • Your store open to the public. Shopify’s Help Center notes that Google can’t verify your domain or read your sitemap while the store is in private mode (the password page).

Domain property or URL-prefix property?

When you add a site, Search Console asks which type of property you want. The choice decides what’s covered and how you prove you own it.

Domain propertyURL-prefix property
What you enterfernandthistle.co.ukhttps://www.fernandthistle.co.uk/
What it coversAll subdomains (www and others), http and httpsOnly addresses that start with that exact prefix
How you verifyDNS record onlyHTML tag, HTML file, Google Analytics, Google Tag Manager or DNS
Changes theme code?NoYes, if you use the HTML tag

For most Shopify stores, a Domain property is the better choice. You see all your data in one place, whether Google shows the www version or not, and nothing in your theme can break the verification.

Shopify’s Help Center describes the URL-prefix route with an HTML tag. It works, and we cover it below, but it means editing your theme code.

Option 1: Domain property with a DNS record (recommended)

  1. Open Search Console, click the property selector at the top left and choose Add property.
  2. Choose Domain. Enter your domain without https:// or www, for example fernandthistle.co.uk.
  3. Search Console shows a TXT record that starts with google-site-verification=. Copy it.
  4. Add that TXT record to your domain’s DNS (see below for where).
  5. Go back to Search Console and click Verify. If it fails, wait and try again later. DNS changes aren’t always instant.

If your domain is managed by Shopify (you bought it through Shopify), add the record in your admin. Shopify’s Help Center describes it like this:

  1. Go to Settings, then Domains.
  2. Select your domain.
  3. In the DNS settings section, click Manage.
  4. Click Add custom record and choose TXT.
  5. Leave the name field as it is, paste the Google value, and click Confirm.

Shopify says DNS changes can take up to 24 hours to take effect.

If your domain is with another provider (for example the company you bought it from, or a service like Cloudflare), log in there and find the DNS or zone settings. Add a new TXT record. Google’s instructions say to leave the host or name blank, or use @, and paste the value Search Console gave you. Menus differ between providers, so look for their own help page on adding a TXT record if you can’t find it.

Don’t delete the TXT record after you’re verified. Search Console checks from time to time that it’s still there. If it’s gone, you’ll get a warning and eventually lose access.

Option 2: URL-prefix property with the HTML tag

Use this if you can’t reach your DNS settings, for example because someone else manages the domain and is slow to reply.

  1. In Search Console, choose Add property, then URL prefix.
  2. Enter your full primary address, including https://, exactly as it appears in the browser. Check whether your store uses www or not.
  3. Choose the HTML tag method and copy the meta tag.
  4. In Shopify, go to Online Store, then Themes. Next to your live theme, open the menu and choose Edit code.
  5. Open theme.liquid in the Layout folder. Paste the tag on a new line just after the opening <head> tag, then save.
  6. Go back to Search Console and click Verify. Shopify suggests waiting 15 minutes and trying again if it doesn’t work first time.

Be clear about the trade-off. This method edits your theme code. If you switch or update to a fresh copy of your theme, the tag won’t be in the new one, and verification can lapse. Make a note to add it again. The DNS method has no such risk.

If you already use Google Analytics or Google Tag Manager on your store, Search Console can verify a URL-prefix property through those instead. You need edit rights in Analytics, or publish rights in Tag Manager, with the same Google account. These still rely on storefront code, so DNS remains sturdier.

Submit your sitemap

Shopify builds your sitemap automatically at /sitemap.xml. Submitting it tells Google where to find your products, collections, pages and blog posts.

  1. In Search Console, open Sitemaps under Indexing.
  2. In Add a new sitemap, type sitemap.xml. With a Domain property, enter the full address, such as https://www.fernandthistle.co.uk/sitemap.xml.
  3. Click Submit.

The status should change to Success within a day or so. If it says Couldn’t fetch, our Shopify sitemap guide covers what that means and what to do.

Checks after you set up Search Console

  • Manual actions and Security issues. Open both under Security & Manual Actions. Each should say no issues detected. If not, fix what Google lists first.
  • Link Google Analytics 4. In GA4, go to Admin, then Product links, then Search Console links, and click Link. You need owner access in Search Console and editor access in GA4. Then publish the Search Console reports from Reports, then Library.

What to look at first

Data usually starts to appear within a few days. Then start with two reports.

Performance. Open Performance, then Search results. Turn on all four figures at the top: clicks, impressions, average click rate and average position. Set the date range to the last 3 months once you have that much data.

  • The Queries tab shows the searches people used. You’ll often find words you never thought of, and these are useful for choosing keywords.
  • The Pages tab shows which pages get seen. Pages with lots of impressions and few clicks usually need a better search title and description. See how to improve click-through rate.

Pages (indexing). Open Pages under Indexing. It shows how many of your pages are indexed and why others aren’t. Don’t panic at a long “not indexed” list. Google says not every URL will be indexed, and on Shopify many of them are duplicates that point to a main version on purpose. Check that your homepage, main collections and best-selling products are indexed.

To check one page, paste its address into the search bar at the top of Search Console. This is the URL Inspection tool, and it tells you whether that page is on Google.

Use it to find pages that are nearly there

  1. In Performance, open the Pages tab with average position turned on.
  2. Click the filter icon above the table and show only rows with a position greater than 7.
  3. Sort by impressions. Busy pages around 8 to 20 are your best chances.

Our guides to pages stuck on page 2 and improving click-through rate explain what to change.

Search Console is powerful, but finding the right pages in it each week takes time. Serpanda connects to it read-only, picks out the pages close to page one, and suggests new search listings from the real searches behind them.

If verification doesn’t work

  • DNS not found yet. Wait a few hours and try again. Google notes that DNS changes can take a while to spread, sometimes a couple of days.
  • Record in the wrong place. If your domain uses another company’s name servers, records added in Shopify won’t count. Add the record wherever your DNS is actually managed.
  • Wrong address for a URL-prefix property. https://example.com/ and https://www.example.com/ are different properties. Use the one your store redirects to.
  • Store in private mode. Turn off the password page while you verify, then turn it back on if you need to.
  • Tag in the wrong theme. The HTML tag must be in your live, published theme, not a draft.

Once you’re in, add a colleague as a user under Settings, then Users and permissions, so access doesn’t rely on one person.

Running several stores? One Google account can hold many properties. Verify each store’s domain separately and switch with the property selector.

Questions

Does Shopify connect to Google Search Console automatically?

No. You need to add your store as a property in Search Console and prove you own it, either with a DNS record or a verification tag. Shopify does create your sitemap for you, so once you’re verified you only need to submit it.

Which Search Console property should I use for Shopify?

A Domain property is usually the better choice. It covers every version of your domain, with and without www and on http and https, and it’s verified with a DNS record, so you don’t need to change your theme code.

Can I verify my myshopify.com address?

You can’t add DNS records to a myshopify.com address, so a Domain property isn’t possible for it. Connect a custom domain first. Shopify redirects your myshopify.com address to your primary domain, so the primary domain is the one to add.

How long until data shows in Search Console?

Search Console says data usually starts to appear within a few days of adding a property. Performance data then builds up over time, so wait a few weeks before drawing conclusions.

Can I verify by adding code to my theme?

Yes. Use a URL-prefix property and paste Google’s HTML tag into theme.liquid, as in Option 2 above. It works, but the DNS method is sturdier because it doesn’t depend on your theme.

Will my verification break if I change my theme?

If you used the HTML tag method, yes, it can. The tag lives in your theme code, so a new theme won’t have it and Search Console may stop seeing it. The DNS method isn’t affected by theme changes.

Sources

Stuck on page two?

Serpanda finds your Shopify pages at positions 8 to 20 and helps you fix their Google listings.

Join the waitlist