goodkeel

Duplicate hreflang tags on Shopify: where the second set comes from

Christopher Uryga · October 2026

A Shopify page should carry one set of hreflang tags. When it carries two, they often disagree, and search engines have to guess which to believe. Here is how a second set gets there, how to tell the sources apart, and how to keep just one.

How you end up with two sets

Shopify adds hreflang tags by itself through a setting called Automatic hreflang tags (Online Store > Preferences, in the social sharing image and SEO section). Those tags are printed by Shopify as part of the code every theme loads, so nothing in your theme can change or remove them. The setting is the only switch.

Anything else that prints hreflang tags therefore adds a second set rather than replacing Shopify's. The usual sources are:

Two sets aren't automatically wrong if they say exactly the same thing. In practice they rarely do: one source writes fr where the other writes fr-CA, or points at a different address for the same page, and now the page sends two different answers.

Check whether you have two sets

Run a page through the free hreflang checker. It lists every tag on the page and flags the same language code listed twice. You can also view the page's source (Ctrl+U on Windows, Option+Command+U on a Mac) and search for hreflang: if the matches come in two groups, or one code appears twice, you have two sources.

Check a product page as well as the home page. Some sources only print tags on certain page types.

Tell the sources apart

In the page source, look at what sits around each group of tags.

If you can't tell, turn sources off one at a time and check again after each change. Shopify caches pages, so give each change a minute or two before you look.

Keep one source

Decide which source you trust, then remove the others.

Turning sources off is safe to undo. Each step above is one switch or one edit, and you can reverse it the same way.

After the fix

Run the checker again on the home page and one product page in each language. You're looking for one tag per language and market version, the page listing itself, and the pages it lists linking back. Our guide on how to check the hreflang tags on your Shopify store covers what else to look for.

If you'd rather not maintain this by hand, Hreflang Manager prints one set built from your markets, languages and translated URLs, checks during setup that no other tags are left on your home page, and its audit flags a second source if one comes back. It has a free plan.

Sources