Quick answer: When you sell in several markets or languages with Shopify Markets using subfolders (/en-ca/) or separate domains, Shopify adds hreflang tags to your pages automatically. You only need to add tags yourself when versions of your site live outside that Shopify setup, for example a second store on another domain or a separate site for one country.
Hreflang tells Google which version of a page to show to which language or country. Get it wrong and Canadian shoppers land on U.S. prices, or Google shows the wrong language in search.
What Shopify does for you
For each published language and market, Shopify outputs link rel="alternate" hreflang="…" tags pointing to every version of the page, plus an x-default. It also updates them when you add or remove markets. You do not need an app for this.
How to check your tags
- Open a product page, right-click and choose View page source.
- Search for
hreflang. - Check that every version is listed, including the page itself, and that each URL works.
Common problems
- Language without translation: a published language with untranslated pages shows the same content under two hreflang codes. Translate it or unpublish it.
- Wrong codes: use ISO language codes like en, fr, de, optionally with a country (en-gb). "en-uk" is wrong.
- Redirects by IP: forcing visitors to a country version based on location can stop Google from crawling other versions. Use a suggestion banner instead.
- Two stores: separate Shopify stores for different countries do not know about each other, so they do not link with hreflang.
When to add tags yourself
If you run separate stores or sites for different regions, add hreflang tags in each theme that point to the matching page on the other sites. Our hreflang tag generator builds the tags, including x-default. Remember each page must list all versions, including itself, and the other sites must link back.
Do you need multiple markets at all?
If you sell in one language and ship worldwide from one price list, you may not need hreflang. Add markets when you offer local currency, language or pricing. See selling internationally with Shopify Markets.
Quick answers
Does Shopify add hreflang tags automatically?
Yes, for languages and markets published in the same store using subfolders or domains.
What is x-default in hreflang?
The fallback page for visitors whose language or country does not match any version.
Do I need an hreflang app for Shopify?
Usually not. Apps or custom code are only needed for setups across separate stores or sites.
Related services
- Multi-Language & Multi-Currency Setup – Markets, translations and hreflang set up right
- International Shipping, Duties & Markets – selling abroad without surprises
- Technical SEO Audit & Fix Plan – hreflang, canonicals and indexing checked