In short
- Once a store uses Shopify Markets, Shopify writes hreflang into every page's head for you, with region codes for country markets, a language-only code for wider ones and an x-default, and keeps the set in step with each page's canonical
- Shopify puts no hreflang in its sitemap, so the head is the only place search engines read it
- On 12 live stores with a set, every alternate that answered 200 named itself as canonical, and 19 of 42 alternates were clean; the failures were location redirects, a moved domain and dead links to other countries' stores
- Markets cannot link separate stores, so cross-store tags are yours or an app's and go stale when one store changes
Shopify writes hreflang for you once a store sells in more than one market or language through Shopify Markets. The tags go in the head of every page, with a region code such as en-gb for a country market, a language-only code such as en for a wider one, and an x-default. Shopify updates them when the markets change. It puts no hreflang in the sitemap, and it cannot link one store to a separate store on another domain.
We read 52 live Shopify stores on 23 November 2026. Twelve publish a full hreflang set on their product pages, and we fetched up to eight alternates from each one. This post shows what Shopify writes, what those stores published, and where Shopify hreflang still breaks. For the rest of a Shopify audit, see the Shopify SEO audit.
What Shopify writes for you
Shopify's theme documentation says the tags come from content_for_header, the object every theme prints in the head of layout/theme.liquid. That means they appear on any theme without editing code. A country market produces a code with a region, a market that covers a wider area produces a language-only code, and each tag points at the canonical URL of that version, so the set and the canonical always agree.
What Shopify writes once a store uses Markets
From Shopify's theme documentation, and 52 live Shopify stores read on 23 Nov 2026.
IN THE HEAD
Written for you
- Printed by content_for_header in theme.liquid
- A country market gives a code like en-gb; a wider market gives en
- An x-default on all 12 stores we read with a set
IN THE SITEMAP
Nothing
- Shopify's sitemap carries no hreflang entries
- 0 of 37 product sitemaps we read had any
- The head is the only place Google can read the set
THE SWITCH
Yours to turn off
- Online store, Preferences, Social sharing and SEO: Automatic hreflang tags
- Turn it off only if a theme or app writes its own
- Two sources at once give conflicting sets
The sitemap gap matters more than it looks. Google reads hreflang from the head, an HTTP header or the sitemap, and only needs one. On Shopify the head is the only one, so a theme that drops content_for_header or an app that strips tags removes the whole signal. We read the product sitemaps of 37 stores, including stores selling in dozens of markets, and none had an xhtml:link alternate.
What one product's set looks like
Every version of a product prints the same list: one line for each market and language, itself included, plus x-default. On the stores we read, the primary market's address carried both x-default and a language-only code, and each market folder carried its own region code. A translated handle is fine, because Shopify writes the translated URL into the set.
One product, one set, printed on every version
A store selling in the US (the primary market), the UK and Canada in English and French, with market folders.
HEAD OF /PRODUCTS/WOOL-HAT
<link rel="alternate" hreflang="x-default" href="/products/wool-hat"> <link rel="alternate" hreflang="en" href="/products/wool-hat"> <link rel="alternate" hreflang="en-GB" href="/en-gb/products/wool-hat"> <link rel="alternate" hreflang="en-CA" href="/en-ca/products/wool-hat"> <link rel="alternate" hreflang="fr-CA" href="/fr-ca/products/bonnet-laine">
Real tags carry the full https address; the domain is cut here to fit.
WHAT MAKES IT WORK
/en-gb/products/wool-hat /en-ca/products/wool-hat /fr-ca/products/bonnet-laine
Each of these prints the same five lines. Each names itself, names the other four, and has a canonical pointing at its own address. A translated handle (bonnet-laine) is fine: Shopify writes the translated URL.
Shopify's documentation warns against adding your own tags on top. A theme snippet or translation app that prints a second set gives Google two answers for the same page. If you need your own tags, turn the automatic ones off first, under Online store, Preferences, Social sharing and SEO. Older guides say you must ask Shopify Support to do this; Shopify's own documentation now puts the switch in the admin.
What 12 live stores publish
Of the 52 stores we could read, 12 printed a set with at least two languages or regions on their product pages. They ranged from 3 codes to 86. All 12 had an x-default, 11 also used a language-only code next to the region codes, and 5 pointed at more than one domain.
Twelve Shopify stores with an hreflang set
One product page per store, every alternate fetched (up to eight), from the ops box in Germany on 23 Nov 2026.
| STORE | CODES | OTHER DOMAINS | CHECKED | 200 AND LINKED BACK |
|---|---|---|---|---|
| Razors and body care, Sweden | 23 | No | 8 | 8 |
| Tea, Canada | 4 | No | 2 | 2 |
| Bracelets, US | 4 | Yes, subdomains | 2 | 2 |
| Drinks brand, US | 3 | No | 1 | 1 |
| Fashion, US | 3 | No | 1 | 1 |
| Supplements, US | 3 | No | 1 | 1 |
| Clothing, UK | 5 | Yes | 1 | 1 |
| Jewellery, Denmark | 3 | Yes | 1 | 1 |
| Bags, UK | 7 | No | 5 | 1 |
| Footwear, US | 86 | Yes, 28 hosts | 8 | 1 |
| Body care, Australia | 6 | No | 4 | 0 |
| Cosmetics, US | 58 | Yes | 8 | 0 |
42 alternates checked, 19 answered 200 and listed the page back. Every one that answered 200 had a canonical naming itself.
The tags Shopify generated were sound. Every alternate that answered 200 had a self-referencing canonical, and 19 of 21 listed the original page back. The two that did not were on a store that had already redirected us into a folder its own set does not mention. Eight of the 12 stores were clean on every alternate we fetched. The other four failed in ways the tags themselves cannot fix.
Where Shopify hreflang breaks
Three stores answered most of their alternates with a 302 to a different market folder. A body care store sent all four of its en-us, en-gb, en-ca and en-nz URLs back to the main product page; a bag store sent four of its five to /de-de/, because our request came from Germany; a cosmetics store sent six of eight to a folder for a market it does not list. Google asks sites not to redirect by visitor location for this reason: a crawler that arrives from the wrong country never sees the page the tag names. The body care store answered the same URL with a 200 when the request claimed to be Googlebot, so it exempts Google's crawler by user agent. Every other crawler still gets the redirect, including any audit tool you run.
The fix for redirects is a setting, not a tag. Turn off automatic redirection wherever the store sets it, usually a geolocation app or the domain redirect settings, and offer a country selector or banner instead, so every market URL answers 200 to anyone who asks for it.
Hreflang across separate Shopify stores
Markets coordinates the markets of one store, including market domains such as shop.ca attached to it. It cannot see a second Shopify store. Brands that run a store per country link them with their own tags or an app, and those sets go stale. The footwear store in our sample lists 86 codes across 28 hosts. Of the eight we fetched, two other-country product URLs answered 404, one distributor page answered 403, and four answered 301 because those stores had moved from www to the bare domain. Only the UK store was clean.
If the stores have to stay separate, give every product the same handle on each, write the full URL of the final domain into the set, and check the set again after any rename, deleted product or domain change on any store.
How to audit hreflang on a Shopify store
- Check the switch. In Online store, Preferences, confirm Automatic hreflang tags is on, unless a named app writes your tags. Then view source on a product page and count the sets: there should be one.
- Check every market URL answers 200. Fetch each alternate from a product page, from more than one country if you can. A 302 to another market means a redirect setting to turn off.
- Check the return links and canonicals. Each alternate should name itself as canonical and list the page you started from.
- Check cross-store links. On separate stores, every alternate on another domain should answer 200, on the domain it names, not through a redirect.
A crawl does steps 2 and 3 across every page instead of one. Crawl Cove reads the set from the head, the HTTP header and the sitemap, queues same-site alternates that nothing links to, and flags missing return links, alternates that redirect or error, alternates whose canonical points elsewhere, invalid codes, missing self-references and missing x-default. It does not fetch alternates on other domains, so separate stores still need step 4 by hand or with the hreflang checker. Run the crawl from your own computer and remember it sees the store as a visitor from your country does: a location redirect shows up as an alternate that redirects. For the general rules behind each finding, see hreflang errors and how to audit them, and for where market folders sit in the URL, see Shopify URL structure.
Frequently asked questions
- Does Shopify add hreflang tags automatically?
- Yes, once the store sells in more than one market or language through Shopify Markets. Shopify prints the tags in the head of every page through content_for_header and updates them when you add, remove or change a market's domains or languages. A store with one market and one language gets no hreflang, because there is nothing to point at.
- How do I turn off hreflang in Shopify?
- In the Shopify admin, go to Online store, then Preferences, and in the Social sharing and SEO section turn off Automatic hreflang tags. Older guides say you have to ask Shopify Support; that is no longer the case. Turn it off only if a theme or app writes its own tags, and then build those from the localization object rather than hard-coding domains or handles.
- Does the Shopify sitemap include hreflang?
- No. We read the product sitemaps of 37 Shopify stores on 23 November 2026 and none carried an xhtml:link alternate, including the stores that sell in many markets. The tags in the head are the whole hreflang signal on a Shopify store, so they must be right on every page.
- How do I add hreflang between two separate Shopify stores?
- Markets only links the markets of one store, so a second store on another domain needs tags you write yourself or an app that writes them. Each store has to list the other's matching URL and itself, the same handle has to exist on both, and every change of handle or domain has to be made on both sides, or the links point at 404s and redirects.