A Shopify store owner discovered that the en-GB hreflang tag for their UK home market disappeared around July, leaving only x-default and tags for other markets (de-DE, en-DE, en-US). This is causing Google to display incorrect country versions in UK search results.
Root cause identified:
Shopify auto-generates hreflang tags based on Markets and Languages configuration. The missing en-GB tag indicates the UK market isn’t using the “English (United Kingdom)” locale specifically.
Recommended solution:
Navigate to Markets → United Kingdom market
Verify root domain (www.domain.com) is assigned to UK market (not International)
Add “English (United Kingdom)” (en-GB) as a distinct language and set as default for UK market
Ensure other markets retain their published languages (en-US, de-DE, etc.)
Current blocker:
The store owner reports seeing only generic “English” in their Languages settings with no option to add “English (United Kingdom)” as a separate locale. They’ve shared screenshots showing their current configuration.
Status: Awaiting further guidance on how to add the en-GB locale variant within Shopify’s interface.
Summarized with AI on October 23.
AI used: claude-sonnet-4-5-20250929.
I have noticed more and more lately that Google is displaying the wrong country versions of URLs in search results for our home market which is the United Kingdom. Upon closer inspection, there used to be an en-GB hreflang tag in addition to the x-default tag, which for some reason no longer exists. Prior to around July, it looked like this:
First, the most common cause is an incorrect primary market setup. Go back to Settings > Markets and double-check that your home country is explicitly set as the “Primary market” and that your main domain is assigned directly to this specific market (not just an international one).
If your market settings are correct, the issue might be with your theme code. Make sure the line {{ content_for_header }} is present in your theme.liquid file and remove any manually added hreflang tags you find elsewhere in your theme. Also, check if your theme has any available updates.
Finally, rule out caching by checking your site in an incognito window or using Google’s Rich Results Test to see the code Google sees.
Hi @PieLab, {{ content_for_header }} is definitely in place (because I’m seeing the rest of the stuff!). It’s the same in incognito. I can’t see in new Markets (which isn’t in Settings anymore) how to set a market as primary. Any ideas?
Shopify outputs <link rel="alternate" hreflang="…">from your Markets + Languages setup. If en-GB disappeared, it’s almost always because the UK market is no longer using the “English (United Kingdom)” locale, or the UK market/domain assignment changed.
What to check (and fix)
Markets → United Kingdom (your home market)
Domains: make sure the root domain (e.g., www.domain.com) is assigned to the UK market, not to a catch-all/International market.
Languages: click Languages and make sure “English (United Kingdom)” (en-GB) is added and published. If it shows just “English” (en), add English (United Kingdom) and set it as the default for the UK market.
Other markets
Keep “en-US”, “de-DE”, etc. published under their respective markets.
If you’re using one English language for multiple markets, Shopify may collapse hreflang output and stop emitting en-GB. Give the UK its ownen-GB language.
Re-test the HTML
After saving, open your homepage → View source → search for hreflang="en-GB".
Also check a couple of product pages.
Search Console
Inspect the URL in GSC and “Test Live URL” to see current tags.
Request indexing for the homepage and a few key pages once en-GB appears again.
Why it changed
A recent change to Markets/language publishing (e.g., setting English to en instead of en-GB, or reassigning the primary domain to “International”) can cause Shopify to stop emittingen-GB and only output x-default. Google then has less regional guidance and may surface the wrong locale.
Temporary band-aid (only if you can’t change Markets)
You can add en-GB back for the current page until Markets are fixed:
…but the proper fix is correcting Markets → Languages so Shopify emits the full, consistent hreflang set automatically.
If you share a screenshot of Settings → Markets → United Kingdom → Languages & Domains, I can point to the exact toggle you need to flip. You can check out our Shopify Partner profile — we’ve built and shared several free Shopify app solutions to help store owners. Feel free to explore our profile and see how our apps can make your Shopify experience better!