On this page
What this issue is
hreflang is an HTML attribute (also available in HTTP headers and XML sitemaps) that lists the alternate versions of a page for other languages or regions. For example, en-gb for English in the UK and de-de for German in Germany.
The issue appears when a tag points somewhere it should not. Common causes: a tag pointing to the home page instead of the matching page, a URL that redirects or returns 404, a URL that differs from the page's canonical, a missing return tag, or a wrong language or region code.
- Searcher in GermanySearches in German
- hreflang tagde-de points to the English page
- Wrong pageVisitor sees English, wrong currency
- Lead or saleVisitor leaves
The break happens at the tag, so every step after it is lost.
Why it costs you leads or sales
Visitors who land on a page in the wrong language, or with prices in the wrong currency, often leave. Google may also ignore broken hreflang entirely and pick a version itself. The impact is usually modest and spread across many pages, which is why we rate it low, but it can hit a whole market.
How to check if your site has it
View the tags on a page
Open a page, view the source and search for hreflang. Note each URL listed.
Open each listed URL
Each should load directly (status 200), without a redirect, and be the same content in the stated language.
Check return tags
On every alternate page, confirm it lists the original page back. hreflang must be reciprocal.
Compare with the canonical
Each hreflang URL should match that page's own rel=canonical URL exactly, including https, www and trailing slash.
Run a crawl
Use an SEO crawler or Google Search Console's international targeting data where available to list errors across the whole site.
| Mistake | What you see | Fix |
|---|---|---|
| Points to home page | All tags use the same root URL | Link to the matching page |
| Redirecting URL | Tag URL returns 301/302 | Use the final URL |
| No return tag | Alternate page does not list the original | Add reciprocal tags |
| Canonical conflict | Tag URL differs from canonical | Align both to one URL |
| Wrong code | en-uk instead of en-gb | Use valid ISO codes |
How to fix it
<link rel="alternate" hreflang="en-gb" href="https://example.com/uk/pricing/" />
<link rel="alternate" hreflang="de-de" href="https://example.com/de/preise/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/pricing/" />Each page lists itself and all its alternates. The steps depend on how your site is built.
Check your multilingual plugin
Plugins such as WPML, Polylang or TranslatePress output hreflang. Make sure each page is linked to its translation in the plugin's translation settings.
Remove duplicate output
If an SEO plugin and a translation plugin both print hreflang, turn one off.
Use Shopify Markets
Set up languages and domains or subfolders in Settings > Markets. Most themes output hreflang automatically.
Check the theme
If tags are wrong, look for hreflang in theme.liquid or a translation app and remove hard-coded tags.
Use Localization
Webflow Localization adds hreflang for each locale. Check that each locale's page is published and its slug is correct.
Remove manual tags
Delete custom hreflang in page custom code if Localization is on.
Use Wix Multilingual
Wix adds hreflang for translated pages. Check that each page is translated and published for each language.
Generate tags from a mapping
Keep a map of each page to its translations and output the full set from that map on every version.
Use absolute final URLs
Use full https URLs that match the canonical, with no redirects.
Broken
- de-de points to the English home page
- Tag URL redirects
- No return tag on the German page
Fixed
- de-de points to the German matching page
- Tag URLs match the canonicals
- Every version lists all the others
How to confirm it's fixed
- Every hreflang URL returns status 200 with no redirect
- Each URL matches its page's canonical
- Each alternate links back to the original
- Language and region codes are valid
- x-default is set where it makes sense
- A re-crawl shows no hreflang errors
Google may take days or weeks to recrawl and reflect the change in results.
How to prevent it happening again
- Generate hreflang from one source, not by hand on each page
- Re-crawl after any URL, slug or translation change
- Update tags when you delete or rename a page
- Add a hreflang check to your release checklist
- Review international reports in Search Console regularly
How FunnelGuard handles this
This is outside what FunnelGuard checks. FunnelGuard runs your customer journeys, such as forms and checkouts, and checks tracking and lead delivery. hreflang is an SEO markup problem that needs another kind of tool: an SEO crawler or site audit tool that reads hreflang tags across your pages, plus Google Search Console.
If wrong-language visitors are reaching your forms or checkouts, FunnelGuard can still run those journeys on a schedule once the page is reachable. The Free plan covers 1 site and 2 journeys with no card.
Questions people ask
Why is Google showing the wrong language version of my page?
Often the hreflang tags are missing, point to the wrong URLs or lack return tags, so Google picks a version itself. Check that each version lists all alternates, including itself, and that URLs match the canonicals.
What is a hreflang return tag?
A return tag is the reciprocal link. If page A lists page B as an alternate, page B must list page A. Without it, Google may ignore the pair.
Should hreflang URLs match the canonical URL?
Yes. Each hreflang URL should be the canonical URL of that page. A mismatch sends conflicting signals and Google may ignore the tag.
Is uk or gb the correct hreflang code for the United Kingdom?
Use gb, as in en-gb. The code uk is not a valid region code in ISO 3166-1.
How do I check hreflang errors across my whole site?
Use an SEO crawler or site audit tool that reports hreflang issues, and compare with Google Search Console. Spot-check a few pages by viewing the source.
Do I need x-default?
It is optional but useful. It names the page to show when no language or region matches, such as a language selector or your main version.
How long until hreflang fixes take effect?
Google must recrawl your pages, which can take days or weeks depending on the site. Keep the tags correct and stable meanwhile.
Related issues
- CNV-336Language switcher goes to 404Fix guide
- CNV-339Geo-redirect sends visitors to wrong country siteFix guide
- CNV-342Prices shown in wrong currency for countryFix guide
- CNV-338Translated page has untranslated form or errorsFix guide
- CNV-340Geo-redirect loopFix guide
- CNV-337Language switch loses cart or form dataFix guide