You launch a French version of your Shopify store, then notice that shoppers in France still land on your English pages from Google. Or your Canadian product page appears for searches you expect your US storefront to serve. Shopify hreflang tags help search engines understand which regional or language version to show, but they do not force Google to choose a particular URL.
Shopify Hreflang Tags: Setup for International SEO walks you through checking your market URLs, reviewing the tags Shopify generates, and fixing missing or conflicting references. You learn how to check hreflang tags on Shopify before adding code, whether your store uses language subfolders, subdomains, or separate country domains.
Hreflang is an HTML attribute that identifies a page’s language and, optionally, its target region while connecting it to equivalent versions. A French translation and an English original can form one set; English pages for Canada and the United States can form another. Each reference needs to point to the corresponding page, not simply a market’s homepage.
Shopify can generate these references automatically for languages and markets configured through its international selling features. Your first job is to inspect that output, not paste another snippet into your theme. Extra code from a theme customization or app can create duplicate or conflicting tags, making your Shopify hreflang setup harder to maintain rather than more reliable.
Table of Contents
- Step 1: Map your target languages, countries, and URLs
- Step 2: Check whether Shopify already adds hreflang tags
- Step 3: Configure Shopify Markets and URL patterns
- Step 4: Add hreflang tags only when your setup needs them
- Step 5: Check hreflang tags across languages and markets
- Step 6: Fix duplicate, missing, or conflicting hreflang tags
- Step 7: Monitor international SEO after each change
Step 1: Map your target languages, countries, and URLs
Before changing Shopify hreflang tags, write down which audiences your store actually serves and where each audience should land. Start with one product available across your markets, then record its equivalent URL for every published language and regional version.

Hreflang identifies equivalent pages intended for different languages or regions. It does not translate your content, create a market, or make an unavailable product purchasable.
Choose language and regional versions deliberately
Separate language choices from country choices. French content can serve French-speaking shoppers across several countries, while a French-Canadian version can target shoppers in Canada specifically.
Use a regional version when your storefront genuinely serves that region differently, such as through local availability, shipping terms, pricing, or localized content. More regional URLs mean more pages to maintain, so do not create a separate version for every country you can ship to.
- Language audience: Use a language code such as fr when the page serves French-speaking shoppers without a specific country target.
- Regional audience: Use a language-country code such as fr-CA for French-speaking shoppers in Canada or en-US for English-speaking shoppers in the United States.
- Actual demand: Check orders, shipping coverage, and Search Console country data before adding another regional storefront.
- Valid codes: Pair a supported language code with an optional country code. Use en-GB, not en-UK, and never use a country code alone.
Shopify hreflang tags for multiple languages address language differences; Shopify hreflang tags for multiple countries distinguish regional audiences. Your map can include both, but each entry needs a clear purpose.
Match each audience to a live, indexable URL
Open Settings → Markets and review the domains and languages assigned to each market. Shopify supports market-specific URLs through country domains, subdomains, and subfolders, as explained in its guide to international domains.
Record your real URLs rather than assuming every translation uses the same product handle. The following example uses subfolders; replace the paths with the addresses your store actually publishes.
| Audience | Hreflang value | Equivalent product URL |
|---|---|---|
| English, United States | en-US | https://example.com/products/linen-shirt |
| English, Canada | en-CA | https://example.com/en-ca/products/linen-shirt |
| French, Canada | fr-CA | https://example.com/fr-ca/products/chemise-en-lin |
An indexable URL is a page search engines can crawl and are allowed to index, though indexing is not guaranteed. Check that each mapped address loads the intended product, returns a successful response, and does not redirect elsewhere or carry a noindex directive.
Review its canonical URL, the address declared as the preferred version of that page. A localized page that canonicals to another market needs investigation before you treat it as an independent search destination; use the Shopify SEO roadmap to place those checks within your broader technical review.
Practical rule: Map equivalent pages, not merely matching domains. If a product has no published French equivalent, leave that pairing out rather than pointing its French alternate to the homepage.
Step 2: Check whether Shopify already adds hreflang tags
You open your theme after publishing a second language, ready to paste in Shopify hreflang tags. Before you change anything, check the live storefront: Shopify may already supply the annotations you need. Adding another set can create conflicting signals instead of fixing a gap.
Understand what Shopify Markets can output
Hreflang annotations identify alternate language or regional versions of a page for search engines. Shopify Markets can generate them for configured international storefronts with distinct URLs, so your first task is to confirm what your current market and language settings actually produce.
Does Shopify automatically add hreflang tags? It can, but the output depends on your published languages, assigned domains, and market configuration. A country available at checkout does not, by itself, prove that your store has a separate regional URL or an alternate page to declare.
Shopify’s international SEO documentation explains its automatic hreflang and canonical output, including language-only references and x-default, which identifies a fallback page for visitors whose language or region is not otherwise matched. Automatic hreflang can also be disabled when an alternative implementation supplies it, so absence needs investigation rather than an immediate theme edit.
- Published languages: Check which translations are published and have accessible language-specific URLs. A draft translation does not establish a live alternate.
- Market URLs: Confirm whether each storefront uses a subfolder, subdomain, or country domain. Shopify hreflang tags for multiple countries need to reflect the actual configured destinations, not a list of countries you ship to.
- Existing customization: Record whether a previous developer replaced Shopify’s automatic output. Do not assume that every existing annotation comes from the platform.
Inspect the rendered page source before editing your theme
Open a live product page on your primary storefront, rather than relying on a theme preview. Use your browser’s View Page Source command and search for “hreflang.” This shows the HTML delivered by the server; the Elements panel shows the current browser DOM, which scripts may have changed.
For each matching annotation, read its language or language-region value and its destination URL. Open those destinations, then inspect their source too. Each equivalent page should reference itself and the other applicable versions, rather than leaving the relationship one-way.
- Check coverage: Repeat the inspection on a collection and the homepage. One correct product page does not confirm that every template outputs the right alternatives.
- Check destinations: Verify that a French product annotation leads to its French equivalent, not a language selector or an unrelated product.
- Check duplication: Look for repeated sets and, especially, the same language-region value pointing to different URLs. Note the conflicting lines before changing code.
- Record the baseline: Save the inspected URLs and their annotations. This gives you a comparison point after any theme or market changes.
Practical rule: If the live output is complete and consistent, leave it alone. If Shopify hreflang tags are missing or conflicting, identify the source first; adding a second implementation is not a reliable repair.
Step 3: Configure Shopify Markets and URL patterns
You add France to a market, but your French storefront still has no separate address. Before changing Shopify hreflang tags, confirm that your market and language settings create distinct URLs for the storefront versions you want search engines to recognize.

Hreflang identifies a page’s language and, optionally, its intended country audience. It describes the relationship between localized pages; it does not translate your content or create those pages for you.
Choose subfolders, subdomains, or country domains
In Shopify admin, open Markets, select the relevant market, and review its domain and language configuration. Choose a URL structure you can maintain before rolling it out across your catalog. Shopify’s international domain guidance explains the supported structures and market assignments.
Subfolders keep localized storefronts under one hostname. Subdomains use a separate hostname under your existing domain, while country domains use separate country-specific domain names.
| Structure | Example | Operational tradeoff |
|---|---|---|
| Subfolder | example.com/fr-ca | Keeps one domain to manage, but requires clear language and market assignments. |
| Subdomain | ca.example.com | Separates a regional storefront address, but requires domain configuration. |
| Country domain | example.ca | Provides a country-specific address, but adds domain ownership and renewal work. |
These addresses are illustrative; Shopify’s available URL options depend on your configuration. Shopify hreflang tags for subdomains and Shopify hreflang tags for country domains serve the same purpose: connecting equivalent pages across localized storefronts. Neither structure removes the need for accurate language targeting.
A country domain also does not specify a language by itself. Your Canadian storefront can offer English and French, each with its own language-specific URL.
Assign languages and markets to the right domains
Add the countries you sell to, then assign the intended domain or URL structure to each market. In your language settings, add and publish the languages you support, and confirm their availability on the appropriate market domains. Adding an unpublished language is not the same as making its storefront accessible.
For Shopify hreflang tags for multiple languages, distinguish language from region. Language-region codes identify a language for a particular country: en-CA means English for Canada, while fr-CA means French for Canada. A language-only value such as fr targets French speakers without specifying a country.
- Shared language: If one French experience serves several countries, do not invent separate regional pages solely to obtain more hreflang entries.
- Regional differences: If Canada and France need different catalogs, currencies, or delivery information, configure those market experiences deliberately.
- Published content: Check that each intended language URL opens a usable storefront with the expected translations and products.
- Canonical alignment: Review your Shopify canonical tag setup so localized pages do not accidentally point their canonical tags to an unrelated market version.
Practical rule: Configure the storefront URLs first, then let Shopify’s automatic hreflang handling reflect supported market and language assignments. Do not paste country codes into your theme to compensate for a market that has no distinct, accessible storefront URL.
Step 4: Add hreflang tags only when your setup needs them
You inspect a French product page and find that its alternate links miss a separately managed Canadian storefront. Add custom Shopify hreflang tags only after you confirm that Shopify’s existing output cannot represent the relationship. An incomplete mapping needs investigation, not another copy of every tag.
So, does Shopify automatically add hreflang tags? For supported market and language configurations, yes: Shopify’s international SEO documentation explains automatic hreflang output and the option to disable it for an alternative implementation. Before changing anything, identify whether Shopify, your theme, or custom code currently generates the annotations.
Use valid language and region codes
A hreflang annotation identifies an alternate URL intended for a particular language and, optionally, region. Use a supported two-letter language code, such as en or fr, and add a supported two-letter country code only when the alternate targets that country.
For example, en-CA identifies English for Canada, while fr-CA identifies French for Canada. Do not use CA alone, invent values such as en-UK, or substitute currency codes for language codes. Use en-GB for English targeting the United Kingdom.
- Map equivalent pages: Pair each product, collection, or article with its actual localized equivalent. A French product URL should not identify the English homepage as its alternate.
- Use complete URLs: Supply the full HTTPS address, including the correct domain and localized path. Shopify hreflang tags for subdomains and country domains follow the same annotation rules as tags for subfolders.
- Check destinations: Open every alternate URL before publishing. Exclude broken pages, redirecting URLs, unpublished translations, and destinations that cannot be indexed.
- Handle a fallback deliberately: The optional x-default value identifies a fallback, such as a country selector or default storefront page. It is not a language or country code.
Build this URL mapping before editing your theme. A predictable folder pattern is useful, but replacing a language prefix blindly can generate alternate URLs for products that do not exist in another market.
Include reciprocal links and a self-referencing version
A reciprocal link is a return annotation: if the English page identifies the French page as an alternate, the French page identifies the English page too. A self-referencing annotation includes the current page’s own language and URL in that same set.
For an English and French product pair, both pages should list both URLs. Add each annotation as a link element in the HTML head, with rel set to alternate, hreflang set to the appropriate code, and href set to the complete alternate URL.
- Choose one owner: Keep Shopify’s automatic output when it covers your setup. If you replace it, use Shopify’s documented disabling option rather than layering a competing implementation over it.
- Generate page-specific sets: Ask your developer to use a maintained mapping of equivalent URLs, not one hard-coded list across the entire store.
- Verify both directions: Inspect the source of every page in a sample set after publishing. Confirm matching annotations, self-references, and no conflicting duplicate entries.
Practical rule: Custom hreflang gives you control, but every new translation or changed URL creates maintenance work. Add it only when you can keep the whole alternate set accurate.
Step 5: Check hreflang tags across languages and markets
You publish a translation or update your theme, but the language switcher still working does not prove your Shopify hreflang tags are correct. Run the same checks on a small sample before you roll changes across your catalog.

Choose one product, one collection, and one standard page, such as your shipping policy. Include their equivalents in every published language and market, plus a product that is unavailable in one market to test how your setup handles missing equivalents.
Inspect page source and rendered HTML
Open each sample URL directly rather than relying only on your language selector. Confirm that you reach the intended language and market without being redirected somewhere else.
Use your browser’s View Page Source option and search for “hreflang.” Then open developer tools, inspect the page’s head element, and repeat the search in the rendered HTML, the document your browser builds after scripts run. Comparing both views helps you spot markup that scripts add, remove, or duplicate.
- Location: Confirm that HTML hreflang annotations appear inside the head, not in the page body.
- Format: Check that each annotation uses rel="alternate", a supported language or language-region code, and a complete HTTPS URL.
- Consistency: Look for conflicting destinations assigned to the same language-region code. Identical repeated tags are redundant; contradictory mappings need correction.
- Coverage: Record the codes and destinations for each sample. Compare them with your published market and language configuration, not with an assumed list of countries.
If your Shopify Markets hreflang tags differ between source and rendered HTML, identify which theme code or script changes them before editing anything. Do not remove Shopify’s output simply because another implementation also appears.
Verify every alternate URL and return link
Open every alternate destination listed in your sample, including any x-default URL. A valid-looking annotation is not enough: its destination must load the intended equivalent page, rather than a homepage, unrelated product, redirect, or error.
Check the destination’s annotations next. Return links are reciprocal annotations: when your English product references its French equivalent, that French page references the English product back. Google’s guidance on localized page annotations also calls for each version to include itself.
- Response: Confirm that each destination returns a successful page response and does not depend on a redirect to reach its final URL.
- Equivalence: Match products to the same products, collections to equivalent collections, and policy pages to their translated counterparts.
- Indexability: Check for noindex directives, crawling restrictions, and canonical tags pointing to a different language version.
- Exceptions: When a localized equivalent does not exist, omit that relationship rather than substituting an unrelated destination.
Use your Google Search Console checks to investigate indexing and canonical issues on flagged URLs. URL Inspection helps diagnose those issues; it is not a dedicated hreflang validator.
Practical rule: Keep a checklist of sample URLs, expected alternates, failures, and retest dates. Repeat it after theme changes, translation publishing, domain changes, or market reassignment—not just after your initial Shopify hreflang setup.
Step 6: Fix duplicate, missing, or conflicting hreflang tags
After a theme update, your page source shows two sets of Shopify hreflang tags: one points to your current market URLs, while another still references an old subdomain. Treat this as an ownership problem before editing individual tags. Identify which system generates each set, then remove only the output you can confirm is redundant or incorrect.
Find duplicate output from themes, apps, or custom code
Open the affected page’s source and search for “hreflang.” Record each language or language-region code alongside its destination URL, then compare repeated entries. Identical duplicates add clutter; the same code pointing to different destinations creates a conflict that needs attention.
Next, search your theme files for “hreflang” and snippets that generate alternate links. Check app embeds and any custom international SEO code added during an earlier migration. Not every tag visible in page source comes from an editable theme snippet.
- Establish the owner: Shopify Markets, a third-party integration, and custom theme code can overlap. Identify which source produces each block before disabling anything.
- Protect native output: Duplicate your theme before changing theme code. Do not remove broad theme includes or Shopify’s header output just because the tags appear nearby; other storefront functions depend on them.
- Test one change: Disable or remove one confirmed extra implementation, then inspect the resulting source again. A theme preview helps test theme edits, but store-level settings can affect the live storefront.
- Keep one complete implementation: A custom replacement must cover the required localized pages, not merely your homepage. Do not disable automatic output while that replacement remains incomplete.
If you wonder, “does Shopify automatically add hreflang tags?”, Shopify’s international SEO documentation explains its automatic market annotations and the option to disable them. Check that native behavior before adding another generator. More tags do not make targeting more reliable.
Resolve broken URLs, mismatched canonicals, and missing return links
Once you have a single owner, repair its inputs rather than patching individual rendered tags. An outdated market domain, unpublished translation, or hard-coded locale mapping can reproduce the same fault across thousands of pages. Fixing the underlying setting keeps the next theme deployment from restoring it.
- Replace stale destinations: Update the responsible market assignment or mapping when annotations still use a retired domain or language path. Avoid global text replacements that could alter unrelated links.
- Align canonical intent: A canonical identifies a page’s preferred indexing URL. If a localized page unexpectedly names another locale as canonical, investigate the setting or customization responsible rather than adding more hreflang tags.
- Restore reciprocal output: A return link is the counterpart annotation from an alternate page back to the referring page. If it is missing, check whether both pages use the same template and annotation generator.
Practical rule: When Shopify hreflang tags are not working, change one source at a time and retain a rollback path. Recheck the affected page and its alternate after each change; clearing one visible conflict does not prove the relationship works in both directions.
Step 7: Monitor international SEO after each change
A theme update goes live, a new language becomes available, or a market moves to its own domain. Your storefront can still look right while Shopify hreflang tags point search engines toward an outdated set of localized pages.
Make international SEO checks part of your release process rather than waiting for traffic to fall. Keep a dated record of what changed, which URLs you tested, and what you expect each audience to find.
Recheck key URLs after theme or Markets updates
Maintain a small test set covering your homepage, a collection, a product, and an editorial page across your active locales. Include exceptions, such as a product unavailable in one market, so your checks do not assume every page has an equivalent everywhere.
After changing markets, published translations, domains, or theme code, inspect the HTML returned by those URLs. Compare the annotations with your approved market structure, not just with the previous output: the previous version can contain mistakes too.
- Market coverage: Confirm that each intended language and country version appears with the correct language-region code. Do not add country targeting where you only offer a language-specific version.
- Destination health: Open the alternate URLs and check that they resolve directly to the intended localized page, rather than a redirect, error, or generic homepage.
- Translation status: Check newly published and unpublished languages. Make sure your annotations reflect available localized URLs rather than a translation plan that is not live.
- Output ownership: Check that theme changes have not introduced a second annotation generator alongside your existing Shopify hreflang setup. Keep a saved copy of the tested output for comparison.
Practical rule: Treat an international URL change like a storefront release. Test a representative set immediately after publishing, record exceptions, and assign someone to resolve them before expanding the rollout.
Track indexing and audience-specific organic performance
A clean HTML check confirms what your store publishes now; it does not prove that Google has processed the change. Use URL Inspection for selected localized pages, then monitor indexing and search performance as Google recrawls them.
In Search Console, compare page and country data over equivalent periods. Country data shows where searchers are located, not which language they prefer, so combine it with your localized URL paths or domains rather than treating location as a language report.
- Indexing checks: Watch whether intended localized pages become indexed and whether Google selects an unexpected canonical. Hreflang does not guarantee indexing.
- Audience checks: Review clicks, impressions, and landing pages for each target country. Investigate when shoppers consistently arrive on a different market’s version.
- Change history: Record release dates alongside promotions, stock changes, and seasonal demand. Do not attribute every traffic movement to hreflang.
- Maintenance schedule: Repeat your sample checks after relevant releases and review market coverage monthly. Expand testing when you add languages, migrate domains, or change shared templates.
Keep this checklist with your release notes so the next change starts from a verified baseline.
Yassine Malti is the developer writing this guidance from hands-on Shopify store work.
Put this into practice
Start with the store you already have, then use the guides on the blog for the next page that needs the same treatment.
Shopify apps by Yassine Malti
Put this into practice
-
ALT SEO · Image alt text
AI alt text for every product image · 100 images/month free
-
RANKit · Meta titles & descriptions
AI meta titles and descriptions, sized for Google · 50 meta tags/month free
-
TAGit · Product tags
SEO-friendly product tags, generated in bulk · 50 tags/month free