Shopify HREFLANG Tags for International Stores
If you're selling internationally on Shopify, there's a silent conversion killer hiding in your store's code — and most merchants never find it. When Google encounters the same product content served
If you're selling internationally on Shopify, there's a silent conversion killer hiding in your store's code — and most merchants never find it. When Google encounters the same product content served across multiple languages or regions, it struggles to decide which version to show to which audience. The result is ranking dilution, irrelevant search results for your customers, and lost revenue that never appears in any obvious report. A London merchant supplying accounts like Selfridges, Accenture, Red Bull, and Epic Games faces exactly this problem the moment they expand beyond a single market.
HREFLANG tags are the HTML signals that tell search engines which version of a page to serve to users based on their language and geographic location. Without them, your French storefront might rank for UK searches, your UK prices might appear to Australian shoppers, and Google may quietly consolidate your international pages in ways that undermine months of SEO work. These are not hypothetical risks — they're documented, recurring issues in cross-border ecommerce.
In this guide, you'll learn what HREFLANG tags are, why Shopify's default setup often falls short, how to implement them correctly across your markets, and what common mistakes to avoid. Whether you're running a single-language store expanding into Europe or managing a fully localised multi-region setup, this walkthrough will give you the technical clarity and practical steps to protect your international search visibility.
What HREFLANG Tags Are and Why They Matter for Shopify Stores
HREFLANG tags are HTML attributes that signal to search engines — primarily Google — the intended language and regional audience of a specific page. They sit inside the <head> section of your HTML and follow a standardised format: <link rel="alternate" hreflang="en-GB" href="https://yourstore.com/en-gb/" />. For a Shopify store operating across multiple markets, these tags form the backbone of a coherent international SEO strategy. Without them, Google is essentially guessing which version of your store to serve to which customer.
The practical consequence of missing or incorrect HREFLANG tags is what SEOs call canonical confusion. If you have a /en-us/ and a /en-gb/ version of the same product page, Google may treat one as a duplicate of the other and suppress it entirely from search results. Alternatively, it may serve your US pricing page to a UK shopper — a poor experience that drives up bounce rates and reduces conversion. For a merchant with a wholesale and retail split across markets, this kind of mismatch can mean significant revenue erosion that's extremely difficult to diagnose without knowing where to look.
The good news is that HREFLANG tags are a well-supported standard with clear implementation rules. Google, Bing, and Yandex all honour them, and when implemented correctly, they create a clean signal hierarchy that protects each regional version of your store. Understanding the format, the self-referencing requirement, and the x-default attribute puts you well ahead of most Shopify merchants expanding internationally — and ahead of competitors who are unknowingly cannibalising their own rankings.
How Shopify's Default Markets Feature Handles HREFLANG
Shopify's built-in Markets feature, introduced and expanded through 2022 and 2023, does generate HREFLANG tags automatically for stores using subfolders or subdomains as their international URL structure. When you set up a market for France with a /fr-fr/ subfolder, Shopify will inject the corresponding HREFLANG tags into those pages without any additional configuration. For many smaller stores, this out-of-the-box functionality is genuinely sufficient, and it's worth verifying whether your store is already benefiting from it before investing in third-party solutions.
However, Shopify's automatic HREFLANG generation has meaningful limitations that affect larger or more complex setups. If you're using custom domains for different markets — for example, yourstore.co.uk for the UK and yourstore.com.au for Australia — Shopify does not reliably inject HREFLANG tags across those separate domains. Cross-domain HREFLANG implementation requires manual intervention, either through theme code edits or a dedicated app. Similarly, if you've built your international structure using third-party translation apps like Langify or Weglot, these tools manage their own HREFLANG logic, which sometimes conflicts with what Shopify's Markets is simultaneously generating.
The safest approach is to audit your current setup using Google Search Console's International Targeting report and a tool like Screaming Frog or Sitebulb. Pull a crawl of your store's head section and verify that every international page includes a full set of reciprocal HREFLANG tags — including a self-referencing tag for the page itself. If the audit reveals gaps, you have three remediation paths: theme-level code injection, a dedicated HREFLANG app, or working with your translation app's native support documentation.
The Correct HREFLANG Implementation Format for Shopify
Getting the HREFLANG format exactly right is non-negotiable — a single malformed tag can cause Google to ignore the entire HREFLANG cluster. Every page in your international set must declare all language and region variants, including itself. So if you have English UK, English US, French, and German versions of a product page, each of those four pages must contain four HREFLANG tags pointing to all four URLs. This reciprocal linking requirement is one of the most commonly missed details in DIY implementations.
The language and region codes used in HREFLANG tags follow the ISO 639-1 standard for language (e.g., en, fr, de) and the ISO 3166-1 Alpha-2 standard for region (e.g., GB, US, FR, DE). Combining them gives you tags like en-GB, fr-FR, and de-DE. You can use language-only tags like hreflang="fr" when you want to target all French speakers regardless of geography, but for ecommerce stores where pricing, currency, and shipping vary by country, using combined language-region codes is almost always the right choice. Vague targeting creates ambiguity that undermines the precision these tags are designed to provide.
The x-default tag deserves special attention. It tells Google which page to serve when no other HREFLANG variant matches the user's language and region — typically your global homepage or a country selector page. The format is <link rel="alternate" hreflang="x-default" href="https://yourstore.com/" />. For Shopify merchants, this is usually the root domain. Including x-default ensures that users in markets you haven't explicitly targeted still land on a sensible page rather than being caught in an algorithmic toss-up between your regional variants.
Common HREFLANG Mistakes That Hurt Shopify SEO
The most damaging HREFLANG mistake is incomplete reciprocal tags. If your English UK page references your French page but the French page doesn't reference the English UK page back, Google discards the entire signal cluster as untrustworthy. This is particularly common when merchants manually edit tags in their theme and update only one variant's code. Implementing HREFLANG at scale through Liquid templates or a dedicated app eliminates this risk by generating the full tag set dynamically.
Another frequent error is URL inconsistency. The URLs declared in your HREFLANG tags must exactly match the canonical URLs of the pages they reference — including trailing slashes, HTTPS vs HTTP, and any URL parameters. A tag pointing to https://yourstore.com/en-gb/products/item/ when the canonical is https://yourstore.com/en-gb/products/item (without trailing slash) will be treated as a broken reference. Shopify stores that have gone through domain migrations or URL restructures are especially vulnerable to this type of mismatch, and a thorough post-migration audit should always include HREFLANG validation.
Wrong locale codes are a subtler but equally damaging problem. Using en-UK instead of en-GB, for example, is an invalid region code that Google will silently ignore. A quick reference check against the ISO 3166-1 standard before implementation takes two minutes and prevents weeks of diagnostic confusion later. Tools like the hreflang.org tag generator can help you generate correct tags, but always cross-reference output against the official standards rather than trusting any tool blindly.
Testing and Monitoring HREFLANG Tags on Your Shopify Store
Once your HREFLANG tags are live, verification is essential — and it's not a one-time task. Google Search Console is your first stop: the International Targeting report under Legacy Tools shows detected language and region tags and flags errors including missing return tags, unknown language codes, and non-indexable URLs. If you've recently implemented or changed your HREFLANG setup, allow two to four weeks for Google to re-crawl and update its index before drawing conclusions from the data.
For a more immediate and granular audit, Screaming Frog SEO Spider (the free version handles up to 500 URLs) can crawl your store and export a complete HREFLANG map showing every tag on every page. You can then use its built-in HREFLANG tab to check for mismatches, orphaned pages, and non-200 status codes in your tag set. Running this audit monthly is a sensible cadence for any store with more than two active markets, and after any significant store change — a new market launch, a theme update, or a URL redirect batch.
Rank tracking by region provides the downstream validation that technical audits cannot. Tools like SEMrush, Ahrefs, or even a free SERP checking extension can confirm that your French product pages are ranking in Google.fr searches and your UK pages in Google.co.uk. If your content SEO workflow includes a tool like BlogFlow for international blog localisation, monitoring those pages in regional rankings is particularly worthwhile, since blog content is often the highest-volume traffic driver in a well-structured international store.
Scaling HREFLANG Across Large Shopify Catalogues
For stores with hundreds or thousands of products, manually managing HREFLANG tags is not a realistic strategy. The scale problem is compounded by Shopify's dynamic URL structure: product pages, collection pages, blog posts, and landing pages all need correctly formatted HREFLANG tags, and any new page added to the store needs to be immediately included in the relevant clusters. A Liquid-based dynamic implementation is the most scalable solution for most Shopify stores, injecting tags programmatically from your market configuration rather than hardcoding them page by page.
The approach involves editing your theme.liquid file to include a loop that generates the full set of HREFLANG tags based on your defined markets. Shopify's localization object makes this reasonably straightforward for stores using Markets — you can iterate over available locales and construct the correct tag format for each page type. For stores where this level of Liquid customisation feels outside their comfort zone, several reputable apps in the Shopify App Store handle HREFLANG generation as part of broader international SEO toolkits, and the investment is easily justified by the traffic protection they provide.
Ongoing maintenance is where many merchants fall short. When you add a new market, restructure your URL hierarchy, or migrate product lines, your HREFLANG setup needs to be updated in parallel. Building HREFLANG validation into your standard store change checklist — alongside sitemap updates and redirect audits — ensures your international SEO infrastructure stays accurate as your business evolves. A store supplied to enterprise clients across multiple countries cannot afford the kind of slow ranking decay that unnoticed HREFLANG breakage causes over time.
Conclusion
HREFLANG tags are one of the highest-leverage technical SEO investments available to international Shopify merchants — and one of the most commonly neglected. Correct implementation ensures that each regional version of your store reaches its intended audience, prevents duplicate content penalties across markets, and builds a search presence that compounds over time rather than cannibalising itself. The technical requirements are precise but learnable: reciprocal tags, correct ISO codes, self-references, and x-default declarations.
Start with an audit of your current setup using Google Search Console and Screaming Frog. Identify whether Shopify Markets is handling your HREFLANG automatically and where it falls short. Fix implementation gaps at the theme level or through a dedicated app, validate with a fresh crawl, and monitor regional rankings over the following month. Small corrections made now prevent significant revenue loss later. International growth is a strategic priority for any ambitious merchant — make sure your technical foundation supports it properly.
Try BlogFlow free at saltai.app — no credit card required.
SaltAI Team
SaltAI builds focused Shopify apps for food merchants and general merchants. Every app is tested in production at a real food store — including Vanda's Kitchen — before it ships.