On this page
What this issue is
hreflang is an HTML attribute (also available in HTTP headers and XML sitemaps) that links equivalent pages in different languages or regions. For example, en-gb for English in the UK and de-de for German in Germany.
The issue appears when the tags are wrong. Common forms: a tag points to a page that returns a 404 or redirects; a page links to another version but that version does not link back (a missing return tag); the language or region code is invalid; the page has no self-referencing tag; or the tag URL differs from the page's canonical URL.
Why it costs you leads or sales
When Google ignores broken hreflang, it picks a version by itself. A German visitor may land on your English page, with the wrong currency, wrong shipping terms and a form they struggle to read. Many will leave. The effect is usually modest and slow, which is why the business impact is low, but it grows with the number of markets you serve.
- German visitor searchesSearches in German on google.de
- hreflang tagPoints to a 404 or has no return tag
- Wrong version shownEnglish page ranks instead of German
- Visitor leavesNo form fill or purchase
The break is at the tag; everything after it is what the visitor experiences.
How to check if your site has it
View the page source
Open a page, view source and search for
hreflang. Note every URL listed in the<link rel="alternate">tags in the head.Open each listed URL
Each must load with a 200 status, not redirect, and not show an error or a different language.
Check the return tags
On each target page, confirm it lists the original page back. If A points to B, B must point to A.
Compare with the canonical
The hreflang URL for a page must match that page's
rel="canonical"URL exactly, including protocol, www and trailing slash.Run a crawler or Search Console
Use an SEO crawler that reports hreflang, such as Screaming Frog, Sitebulb or Ahrefs Site Audit. Google Search Console no longer has the old International Targeting report, so a crawler is the practical route.
| Error | What it means | Fix |
|---|---|---|
| Missing return tag | Page B does not link back to page A | Add the full set of tags to every version |
| Target is 404 or redirects | The listed URL does not load directly | Point to the final, live URL |
| Invalid code | For example en-uk instead of en-gb | Use ISO 639-1 language and ISO 3166-1 region codes |
| No self-reference | The page does not list itself | Include the page's own URL in the set |
| Canonical mismatch | hreflang URL differs from canonical | Make both identical |
How to fix it
The target is a complete, reciprocal set: every language version lists every version, itself included, with absolute URLs. Add an x-default for visitors who match none of your languages.
<link rel="alternate" hreflang="en-gb" href="https://example.com/en-gb/pricing/" />
<link rel="alternate" hreflang="de-de" href="https://example.com/de-de/preise/" />
<link rel="alternate" hreflang="fr-fr" href="https://example.com/fr-fr/tarifs/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/en-gb/pricing/" />Use a multilingual plugin
Plugins such as WPML, Polylang or TranslatePress output hreflang automatically. Turn off any second plugin or SEO setting that also adds hreflang, as duplicates conflict.
Link translations
Make sure each page is linked to its translation in the plugin. Unlinked pages are the usual cause of missing tags.
Use Shopify Markets
In Settings > Markets, add languages and domains or subfolders. Most themes output hreflang automatically for published languages.
Check the theme
If hreflang is missing or duplicated, look in theme.liquid for a hand-written block or an app that adds a second set.
Use Localization
In Webflow Localization, enable locales and publish them. Webflow adds hreflang tags for published locales.
Check manual tags
Remove hand-written hreflang in custom code that may clash with the automatic ones.
Use Wix Multilingual
Wix Multilingual generates hreflang for translated pages. Check that each page is translated and published in every language.
Generate tags from one source
Build the set from a single mapping of page to translations so every version outputs the same complete list.
Or use an XML sitemap
Add
xhtml:linkentries per URL in your sitemap instead of head tags. Use one method, not both with different data.
How to confirm it's fixed
- Re-run your SEO crawler and confirm zero hreflang errors
- Every hreflang URL returns 200 with no redirect
- Each version lists all versions, including itself
- hreflang URLs match each page's canonical URL
- Language and region codes are valid
- An x-default is present
Google can take weeks to recrawl and apply changes, so do not expect search results to switch straight away.
How to prevent it happening again
- Generate tags automatically rather than by hand
- Update the tag set whenever you add, rename or delete a translated page
- Add a redirect and update tags when a URL changes
- Schedule a monthly or quarterly crawl that reports hreflang
- Keep only one source of hreflang (plugin, theme or sitemap)
How FunnelGuard handles this
This is outside what FunnelGuard checks. FunnelGuard runs your customer journeys, such as forms, checkouts and booking buttons, and checks tracking and lead delivery. It does not audit hreflang tags across your pages. The kind of tool that fits is an SEO site crawler or technical SEO audit tool that reads hreflang and canonical tags and reports missing return tags and broken targets.
Questions people ask
Why is Google showing the wrong language version of my page?
Often hreflang is broken or missing, so Google chooses a version itself. Check that each version lists all versions with working URLs and that the tags are reciprocal. Other causes include canonical tags pointing to one language only.
What is a missing return tag in hreflang?
If page A names page B as its alternate, page B must name page A back. Without this, Google may ignore the pair. Fix it by outputting the full set of tags on every version.
Should hreflang point to the canonical URL?
Yes. Each hreflang URL should be the canonical version of that page, with matching protocol, domain and trailing slash. A mismatch can cause Google to ignore the tag.
Do I need x-default in hreflang?
It is not required, but it is recommended. It names the page to show visitors whose language or region matches none of your versions, such as a language selector or your main English page.
Is en-uk a valid hreflang code?
No. The correct code for English in the United Kingdom is en-gb. Use ISO 639-1 for language and ISO 3166-1 alpha-2 for region, such as de-at or fr-ca.
How do I check hreflang tags on my website?
View the page source and search for hreflang, then open each URL to confirm it loads and links back. For a whole site, run an SEO crawler that reports hreflang errors.
How long until hreflang fixes take effect?
It depends on how often Google recrawls your pages. It can take days to several weeks for all versions to be reprocessed, so recheck with a crawler first rather than waiting on search results.
Related issues
- PRF-348Visitor sees wrong language version (geo/browser redirect wrong)Fix guide
- PRF-349Auto-redirect by IP traps users in wrong country siteFix guide
- PRF-350Language switcher links to 404 or homepageFix guide
- PRF-352Mixed languages on one page (untranslated strings)Fix guide
- PRF-370Legal pages only in one languageFix guide
- PRF-353Untranslated form labels/errors on translated pageFix guide