In short
- WooCommerce, Yoast SEO and Rank Math write no hreflang, so the translation plugin's tags are the whole set
- On 36 Swiss WooCommerce stores, WPML wrote an x-default on 19 of 20, TranslatePress printed both de-DE and de for each language on 4 of 5, and only 8 stores put hreflang in the sitemap
- 62 of 74 alternates we fetched were clean; the commonest failure was a translation whose canonical named the default-language page, on 3 WPML stores
- A crawl checks every product's set at once, but alternates on a sister store's domain still need a manual look
WooCommerce writes no hreflang. Neither do Yoast SEO and Rank Math. The tags come from your translation plugin, and WPML, TranslatePress, Weglot and Polylang each write them a little differently. When one breaks, the cause is usually not the hreflang line at all but the canonical on the translated page.
We read 1,348 shops listed in the Trusted Shops directory on 23 November 2026, mostly Swiss, where shops often sell in German, French and Italian at once. 157 answered WooCommerce's public Store API, and 36 printed a usable hreflang set on a product page. We fetched up to eight alternates from each. This post shows what each plugin wrote, what came back, and how to check your own store. For the rest of a WooCommerce audit, see the WooCommerce SEO audit.
Which plugin writes your hreflang
Look at the page source of any product and search for hreflang. Every line you find comes from the translation plugin, because nothing else on a WooCommerce store writes them. That makes the plugin's defaults your defaults: whether there is an x-default, which codes appear and whether the sitemap carries a copy.
What each translation plugin wrote on a WooCommerce product page
36 Swiss WooCommerce stores with an hreflang set on a product page, read on 23 Nov 2026. WooCommerce itself writes none.
| PLUGIN | STORES | CODES | X-DEFAULT | IN THE SITEMAP |
|---|---|---|---|---|
| WPML | 20 | Language only, such as de and fr, on 17 | 19 of 20, always the default language | 4 of 20 |
| TranslatePress | 5 | Both de-DE and de for each language on 4 | 1 of 5, an option you switch on | 4 of 5 |
| Weglot | 4 | Language only on 2, Swiss regions such as fr-CH on 2 | 2 of 4 | 0 of 4 |
| Polylang | 3 | The locale set for each language | 1 of 3; Polylang documents one on the home page only | 0 of 3 |
| Other | 4 | Region codes on all 4 | 4 of 4 | 0 of 4 |
Yoast SEO, Rank Math and WooCommerce leave hreflang to the translation plugin. Whatever it prints is the whole set.
Two defaults are worth knowing before you audit. TranslatePress prints both a country code and a language-only code for each language, de-DE and de pointing at the same URL, unless you change its "Remove duplicate hreflang" setting. Google accepts both, so this is noise rather than an error. Polylang's documentation says it writes x-default on the home page only, and TranslatePress only when you tick its option, so a product page on either plugin usually has none. Google recommends x-default but a set works without it.
What one product's set looks like
Every language version of a product prints the same list: one line for each language, itself included, plus x-default where the plugin writes one. With WPML's default URL format, the default language sits at the root and the others in folders such as /fr/ and /en/. A translated slug is fine, because the plugin writes the translated URL into the set.
One product, one set, printed on every language version
WPML with languages in folders: German is the default language at the root, French and English in /fr/ and /en/.
HEAD OF /PRODUKT/LAMPE/
<link rel="alternate" hreflang="de" href="/produkt/lampe/"> <link rel="alternate" hreflang="fr" href="/fr/produit/lampe/"> <link rel="alternate" hreflang="en" href="/en/product/lamp/"> <link rel="alternate" hreflang="x-default" href="/produkt/lampe/"> <link rel="canonical" href="/produkt/lampe/">
Real tags carry the full https address; the domain is cut here to fit.
WHAT MAKES IT WORK
/fr/produit/lampe/ /en/product/lamp/
Each translation prints the same four hreflang lines and a canonical naming its own address, never the German one. A translated slug is fine, because the plugin writes the translated URL into the set.
If you also run sister stores on country domains, such as a .ch shop and a .de shop, each one has to list the other's matching URL. Four stores in our sample linked other domains this way.
What 74 alternates answered
Of the 74 alternates we fetched from 36 stores, 62 answered 200, named themselves as canonical and listed the original product back. Three stores had no other version to fetch, and 27 of the other 33 were clean on every alternate. The failures sat on six stores and fell into four kinds. A missing canonical tag, on one store, is not one of them, because hreflang does not need one.
The redirect and the 404 are both translations the set lists but the store does not serve. One store's French alternate sent us to the French home page; another's German alternate was a 404. Check the translation still exists and is published, or remove it so the plugin stops listing it. The two missing return links were on sister stores on .eu and .dk domains, whose own sets did not list the Swiss shop that listed them.
The canonical that breaks the set
Three WPML stores served a real French or English product page, with lang="fr-FR" or lang="en-US" in its html tag, whose canonical tag named the German page. A canonical says "this page is a copy, index the other one". Google pairs hreflang between canonical URLs only, and its guidance is that each language version should name a canonical in its own language, so the translations drop out of the set and the German page is the only one left to show.
The hreflang lines on those stores were correct, so a check that reads only the tags would pass them. The three stores used different SEO setups, so there is no one setting to blame. Open a translated product, find the rel="canonical" line, and work out what printed it: an SEO plugin, the theme or a snippet in functions.php. Then make that source write the translated URL, and check a second language after the fix.
How to audit hreflang on a WooCommerce store
Start with one product you know has every translation, then widen it to the whole store.
Five checks for hreflang on a WooCommerce store
Steps 2 to 4 are the ones that failed in our sample; a crawl runs them on every page at once.
1
One set per page
View source on a product page. Exactly one plugin should print rel="alternate" hreflang lines.
2
Each translation names itself
Open every alternate. Its canonical must be its own URL, not the default-language page.
3
Each alternate answers 200
No 302 to a language home page, no 404 for a translation that was deleted or never published.
4
Each alternate lists the page back
Sister stores on other domains must carry the same set, or neither side counts.
5
Codes and x-default
Valid codes such as de-CH, not ch. Add an x-default if the plugin does not.
A crawl runs steps 2 to 4 on every product instead of one. Crawl Cove reads the set from the head, the HTTP header and the sitemap, queues same-site alternates that nothing links to, and flags missing return links, alternates that redirect or error, alternates whose canonical points elsewhere, invalid codes, missing self-references and missing x-default. It does not fetch alternates on other domains, so sister stores still need step 4 by hand or with the hreflang checker. Translated products also mean translated categories and filters, so see WooCommerce duplicate content for the canonicals on those, the ecommerce SEO crawler page for the other shop checks, and hreflang errors and how to audit them for the general rules. If you also run a Shopify store, Shopify hreflang covers what Markets writes.
Frequently asked questions
- Does WooCommerce add hreflang tags?
- No. WooCommerce has no language features, and SEO plugins such as Yoast SEO and Rank Math leave hreflang to whichever translation plugin you use. WPML, TranslatePress, Weglot and Polylang all write the tags for you once a product has a translation, so the job is checking what they print rather than writing tags by hand.
- Do I need an x-default tag on a WooCommerce store?
- Google recommends one for visitors whose language you do not serve, but a set works without it. WPML adds it for you, pointing at the default language. TranslatePress has an option to switch it on, and Polylang documents one on the home page only, so on those two you add it yourself if you want it on product pages.
- Should hreflang be in the WooCommerce sitemap as well as the head?
- One place is enough. Google reads hreflang from the head, an HTTP header or the sitemap, and gains nothing from two copies. In our sample, 4 of 5 TranslatePress stores and 4 of 20 WPML stores also wrote it into the sitemap. That is fine as long as both copies come from the same plugin and agree.
- Which hreflang code should a Swiss WooCommerce shop use?
- A language code such as de, fr or it is enough when one version serves every German, French or Italian speaker. Use a region code such as de-CH only when you also have a version for another German-speaking country, such as de-DE. The code ch on its own is not valid: it is the language code for Chamorro, not Switzerland.
- Why does Google ignore my WooCommerce hreflang tags?
- Check the canonical on each translated page first. On 3 of 20 WPML stores we read, the French or English product page named the German one as its canonical, which tells Google the translation is a duplicate. Then check that every alternate answers 200 and lists the original page back.