On this page
What this issue is
hreflang is a tag that tells search engines which language or country version of a page to show to which user. A canonical tag (rel="canonical") tells search engines which URL is the preferred version of a page when several URLs show the same content.
This issue appears when the two disagree. The hreflang tag lists https://example.com/fr/produit?utm_source=news, but that page's canonical says https://example.com/fr/produit. Or hreflang lists the http:// or www version while the canonical is https:// without www. Search engines are told to treat one URL as the real page and, in another tag, to use a different URL as the language alternate.
Google's guidance is that hreflang annotations should point to canonical URLs. When they do not, the annotation may be dropped, because the listed URL is itself treated as a duplicate of another page.
Why it costs you leads or sales
If hreflang is ignored, a visitor in Germany can land on your English page, or a French visitor on your UK page with prices in the wrong currency. They see the wrong language, the wrong price or the wrong shipping rules, and many leave. Your forms and checkouts never get a chance.
It is a quiet problem. Pages still rank and nothing looks broken in a browser. You only notice it as the wrong country version appearing in search results, or as weak traffic from a market you invested in. Business impact is medium: it rarely stops sales outright, but it weakens every international page.
- Search in FranceUser searches in French
- hreflang readPoints to a URL with parameters
- Wrong version shownEnglish or UK page ranks instead
- Form or checkoutVisitor leaves before converting
The hreflang set is ignored, so the market-specific page is never chosen.
How to check if your site has it
For each language version of a key page, compare two things: the URLs in the hreflang tags and the canonical tag of each of those URLs. They must be identical, character for character.
Open the page source
Visit the page, right-click and choose View page source. Search for
hreflang.Copy each hreflang URL
Note every
hrefin thelink rel="alternate"tags, including the self-reference.Open each URL and read its canonical
On every alternate page, search the source for
rel="canonical"and compare it with the URL you came from.Look for differences
Check protocol (http vs https), www vs non-www, trailing slash, uppercase letters, query strings and index.html endings.
Crawl the whole site
Use a crawler such as Screaming Frog (Reports > Hreflang > Non-200 Hreflang URLs and the Hreflang tab filters for non-canonical) or Sitebulb. Google Search Console does not have a dedicated hreflang report any more, so a crawler is the practical way.
| hreflang URL | Canonical URL | Problem |
|---|---|---|
| http://example.com/fr/ | https://example.com/fr/ | Protocol differs |
| https://www.example.com/fr/ | https://example.com/fr/ | www differs |
| https://example.com/fr | https://example.com/fr/ | Trailing slash differs |
| https://example.com/fr/?utm_source=x | https://example.com/fr/ | Query string in hreflang |
| https://example.com/fr/ | https://example.com/en/ | Page canonicalised to another language |
How to fix it
The rule is simple: pick one canonical URL per page, then output exactly that URL in both the canonical tag and in every hreflang set. Each page should also have a self-referencing canonical (pointing to itself), not one pointing to another language.
<!-- On https://example.com/fr/produit/ -->
<link rel="canonical" href="https://example.com/fr/produit/" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/produit/" />
<link rel="alternate" hreflang="en" href="https://example.com/en/product/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/en/product/" />Find who outputs hreflang
It is usually a plugin such as WPML, Polylang, TranslatePress or an SEO plugin. Turn off any second source so only one plugin prints hreflang.
Check the permalink and canonical settings
Under Settings > Permalinks keep one structure. In your SEO plugin, make sure canonical URLs are not overridden per page to another language.
Remove tracking parameters from output
If the plugin builds hreflang from the current request URL, update it or add a rule so query strings are never included.
Use Shopify Markets
Shopify adds hreflang automatically for languages and markets set up in Settings > Markets and Languages. Avoid adding your own hreflang in theme.liquid on top.
Check canonical_url in the theme
In theme.liquid the head should use
{{ canonical_url }}. If an app or custom code writes a different canonical or hreflang, remove or fix it.Review translation apps
Some apps add their own hreflang tags. Keep only one source.
Set the canonical per page
In Page settings > SEO settings, check the canonical tag path or use the site-wide canonical. Make sure each localised page canonicalises to itself.
Use Webflow Localization
If Localization is on, it outputs hreflang for you. Remove any manual alternate links in custom code to avoid mismatches.
Use Wix Multilingual
Wix generates hreflang for pages translated with Wix Multilingual. Do not paste extra hreflang tags in custom code.
Check the primary domain
In Settings > Domains, make sure the primary domain is the one you want, so canonical and hreflang use the same host.
Check for manual tags
Squarespace has no built-in multi-language hreflang. If you added alternate links in Code Injection or a page header, edit them so each URL matches the page's canonical.
Set a primary domain
In Settings > Domains, make one domain primary so canonicals use a single host and protocol.
Check custom head code
In the funnel or website Settings > Tracking Code (head), review any hreflang you added by hand.
Use the connected domain
Write the hreflang URLs with the exact custom domain, protocol and path of each page, without tracking parameters.
Avoid injecting hreflang with GTM
Tags added by JavaScript are slower to be seen and easy to get wrong. If you must, keep the URL logic identical to the canonical.
Strip parameters
If a Custom HTML tag builds hreflang from
location.href, uselocation.origin + location.pathnameinstead so query strings are left out.
Generate both from one function
Create a single function that returns the clean canonical URL for a page and use it for the canonical tag and for every hreflang entry.
Normalise the URL
Force https, one host (www or not), lower case, a consistent trailing slash, and drop tracking parameters before output.
Redirect variants
301 redirect non-canonical versions to the canonical one so only one URL exists per page.
const clean = location.origin + location.pathname;
const link = document.createElement('link');
link.rel = 'alternate';
link.hreflang = 'fr';
link.href = clean;
document.head.appendChild(link);Before
- hreflang lists URLs with parameters or http
- Canonical says a different URL
- Search engines may ignore the hreflang set
- Wrong country version appears in results
After
- hreflang URLs equal each page's canonical
- Every page has a self-referencing canonical
- One clean URL per page version
- Right language and country version is eligible to show
How to confirm it's fixed
- View source on a key page in each language: the canonical equals the page's own hreflang entry.
- Every hreflang URL loads with a 200 status and no redirect.
- No hreflang URL contains utm_ parameters, session IDs or filters.
- The protocol, host and trailing slash are the same in canonical and hreflang.
- A fresh crawl shows no non-canonical hreflang URLs.
- Use the URL Inspection tool in Google Search Console to check that the Google-selected canonical matches the one you declared.
Search engines need to recrawl pages before changes take effect, so results can take days or weeks to shift. Request indexing for the most important pages in Search Console to speed it up.
How to prevent it happening again
- Generate canonical and hreflang from one shared source in your code or one plugin.
- Never print hreflang from the raw request URL.
- Run a site crawl after every theme, plugin or migration change.
- Keep one version of the site: force https and one host with 301 redirects.
- Add hreflang and canonical checks to your launch checklist for new language versions.
- Review international pages whenever you add a translation or marketing app.
How FunnelGuard handles this
FunnelGuard does not check this yet. Comparing hreflang URLs with canonical tags is a possible future check, not something the service does today.
What FunnelGuard does today is run your real customer journeys (lead forms, checkouts, booking and chat buttons) on a schedule from the EU or the US, check each step and the tracking hits sent to ad and analytics platforms, and confirm test leads reach your inbox and CRM. That helps you spot a broken form or checkout on a localised page, but it will not tell you that your hreflang tags disagree with your canonicals.
To watch for this issue, schedule a monthly crawl with Screaming Frog or Sitebulb, review the hreflang filters, and check the URL Inspection tool in Google Search Console for key pages in each market. A free read-only website audit from FunnelGuard is also available if you want a broader look at your site.
Questions people ask
Should hreflang URLs be canonical URLs?
Yes. Google recommends that hreflang annotations point to the canonical version of each page. If a listed URL is a duplicate that canonicalises elsewhere, the annotation can be ignored.
Why is Google ignoring my hreflang tags?
Common causes are hreflang pointing to non-canonical URLs, missing return links, wrong language codes, or alternates that redirect, return errors or are noindex. Compare each hreflang URL with that page's canonical tag first, because mismatches are easy to miss.
Can a page have a canonical tag and hreflang at the same time?
Yes, and it should. Each page should have a self-referencing canonical and a full set of hreflang links that includes itself. The canonical must not point to a different language version.
Should the canonical of a French page point to the English page?
No. That tells search engines the French page is a duplicate of the English one, so it may not be indexed or shown to French users. Each language version should canonicalise to itself.
Do tracking parameters like utm_source break hreflang?
They can. If hreflang is built from the current URL, parameters end up in the tags and no longer match the canonical. Output a clean URL without query strings.
How do I find hreflang canonical errors across my whole site?
Run a crawler such as Screaming Frog or Sitebulb with hreflang reporting turned on and review the non-canonical hreflang filters. Then spot-check key pages with the URL Inspection tool in Google Search Console.
Does a trailing slash difference matter for hreflang?
Yes. Search engines treat /fr and /fr/ as different URLs. Pick one form, use it in the canonical and hreflang, and redirect the other to it.
Does FunnelGuard check hreflang and canonical mismatches?
Not yet. It is a possible future check. For now, use a site crawler and Google Search Console to monitor it, and use FunnelGuard to monitor forms, checkouts and tracking on your localised pages.
Related issues
- SEO-265hreflang missing on multi-language sitesFix guide
- SEO-266hreflang without return links (not reciprocal)Fix guide
- SEO-268hreflang points to redirecting, 404 or noindex pagesFix guide
- SEO-270x-default missingFix guide
- SEO-271hreflang in both sitemap and head with conflictsFix guide
- SEO-277ccTLD vs subfolder setup duplicating contentFix guide