On this page
A shopper in Switzerland finds your product on Google, then gets to checkout and sees shipping terms that apply only in France. If you have a Swiss page for that product, check which URL each page lists for the other market. Hreflang tells Google which language a page is for and, if you include a region, which market it serves. The canonical URL tells Google which version you prefer when two pages have the same or very similar content.
List the URLs for the same product. For each pair, follow the hreflang link from page A to page B. On B, find the entry for A’s hreflang code and check that it points back to A’s final URL. Each page should also list itself under its own code. Check the canonical separately against the URL you’ve chosen for that version.
Where to look during an hreflang audit
Server response
Record the initial HTTP status and the URL you reach after any redirects.
Hreflang and canonical URLs
Copy the URL for each hreflang code and the canonical URL the site declares.
Alternate page
Open the other version and look for a return link with the original page’s code and URL.
Google’s index
After Google crawls the page again, compare the canonical it chose with the one your site declares.
Which product pages belong together?
Start with the product’s SKU. On each local page, check that customers can order that same item, even if the price or shipping terms differ. If the French product page is missing, leave it out of the hreflang links. Sending shoppers to the French homepage would make them search for the product again.
Write down the audience for each URL. The code fr means French with no country specified. Use fr-FR for French speakers in France and fr-CH for French speakers in Switzerland. Each version can have a different URL path. For an HTML example, see the hreflang section of the international SEO checklist.
Where to find hreflang and canonical URLs
In Chrome DevTools, open the Network panel and select Preserve log. Visit the URL you want to check, then select Doc to see the document requests. Note the initial HTTP status and the final URL. If there’s a redirect, record the URL it starts from, too. Even a page that returns 200 can show the wrong product, so check what loads at the final URL.
If your site puts hreflang in the HTML, right-click the page, select View page source, and search for hreflang in the <head>. For each rel="alternate" link with a hreflang attribute, copy the code and its href exactly as written. Hreflang needs a full URL, including the protocol and domain. Flag any entry missing either part. Then find rel="canonical" and copy its href into a separate column. If JavaScript adds the tags, check them in the Elements panel and in the rendered HTML from Search Console’s live URL test.
Your site can also list alternate pages in an XML sitemap or an HTTP Link header. In the sitemap, find the <url> entry whose <loc> matches the page you’re checking. Read the xhtml:link elements in that entry. For HTTP headers, select the document request in the Network panel, open Headers, and look under Response Headers. The server can declare a canonical there, too. If your site uses more than one of Google’s three supported hreflang methods, make sure they give the same URL for each code.
If an alternate URL returns 404 or 410, update the hreflang links to point to the equivalent live product page. If there’s no replacement, remove that reference from every version. For pages you can open, check whether robots.txt blocks crawling or a robots meta tag or X-Robots-Tag header specifies noindex. Record any issue alongside the affected URL.
Four P40 product pages, six pairs to check
Suppose a manufacturer sells the P40 kit on an Italian page and a French page for customers in France. It also has two pages for Switzerland, one in French and one in German. Both show prices in Swiss francs and list local shipping terms. The manufacturer wants Google to index all four pages separately, so each page should name its own URL as canonical.
All four pages return HTTP 200 without a redirect and allow crawling and indexing. The table shows just the paths on example.com. Each hreflang code in the middle column points to the path listed for that code in the first column.
| Page checked | Hreflang codes found | Declared canonical |
|---|---|---|
| it · /it/kit-p40/ | it, fr-FR, fr-CH, de-CH | /it/kit-p40/ |
| fr-FR · /fr-fr/kit-p40/ | it, fr-FR, fr-CH, de-CH | /fr-fr/kit-p40/ |
| fr-CH · /fr-ch/kit-p40/ | it, fr-CH, de-CH | /fr-fr/kit-p40/ |
| de-CH · /de-ch/set-p40/ | fr-FR, fr-CH, de-CH | /it/kit-p40/ |
To cover all six pairs, start with the Italian page and check it against each of the other three. Then check the page for France against each Swiss page. That leaves one last pair, fr-CH and de-CH.
How to record both sides of a hreflang link
Date your audit and record the SKU. For each page, enter its hreflang code, the URL you requested, the initial HTTP status, and the final URL. Note anything that prevents crawling or indexing. Copy the href for the page’s own code, then record the canonical you expected and the one you found.
For each pair, call one page A and the other B. You can copy the fields in the first column into your own worksheet. Here’s a completed entry for the Italian page and the page for France.
| Field to record | P40 example |
|---|---|
| Page A code and final URL | it · https://example.com/it/kit-p40/ |
| Page B code and final URL | fr-FR · https://example.com/fr-fr/kit-p40/ |
| On page A, href for B’s code | https://example.com/fr-fr/kit-p40/ |
| On page B, href for A’s code | https://example.com/it/kit-p40/ |
| Result and action | Each page links back to the other. Keep both links. |
Try the other five pairs. If a link points to the wrong page, record the URL you found. Enter “Missing” if you checked for a link and it was absent. Leave the cell blank if you still need to check it. To track the results across pages and pairs, download the hreflang audit workbook for Excel.
On the Pages tab, “Review target” means the canonical entries differ as written. Google accepts relative HTML canonicals, though it recommends full URLs. To see where a relative canonical points, select its <link> element in Chrome’s Elements panel and type $0.href in the Console. Compare the full address shown with the expected URL and note the result under Page issues.
Which pages need a return link?
In the four-page P40 table, find de-CH among the codes on the Italian page’s row. Then read the de-CH row. It lists three hreflang codes, and its only reference to the Italian URL is in the canonical field. On /de-ch/set-p40/, add the missing return link with hreflang="it" and href="https://example.com/it/kit-p40/".
The other missing return link is between the two French-language pages. The page for France points to fr-CH, but the fr-CH row has no entry for fr-FR. On /fr-ch/kit-p40/, add the link back with hreflang="fr-FR" and href="https://example.com/fr-fr/kit-p40/". The Italian page and the page for France already link to the correct Swiss URLs.
Four of the six pairs already link both ways. Count each pair once and exclude links a page makes to itself. Google explains that when a return link is missing, it can ignore that connection and still use the valid ones on the same page.
Which canonical URL belongs on each Swiss page?
The de-CH page describes the kit in German but names the Italian page as its canonical. In the de-CH page settings, change the canonical to https://example.com/de-ch/set-p40/. Google recommends choosing a canonical URL in the same language when one is available.
The French-language Swiss page names the page for France as its canonical. Both are in French, but the Swiss offer has its own shipping terms and the manufacturer wants that page indexed separately. Set its canonical to https://example.com/fr-ch/kit-p40/. On another site, the owner might choose a single canonical for two nearly identical French-language pages. Confirm which URL the owner wants Google to use before flagging an error. Google covers this case in its guidance on duplicate pages for different regions.
How to verify the fixes on your live site
Keep the original audit and note when the changes went live. Open the four live pages again and record a fresh set of results so you can compare the new values with the ones you flagged.
P40 retest checklist
- Each of the four URLs returns HTTP 200 without a redirect, shows the kit, and allows crawling and indexing.
- On every page, the hreflang entry for that page’s own code points to its final URL.
- All six pairs have the expected code and URL in both directions.
- Each of the four canonical URLs matches the one chosen for that version.
If one of your hreflang links still points to an old URL that redirects, look up its destination in your migration URL map and update the link where your site generates it.
If the catalog uses a shared template, check the same field on another product. If the error turns up there too, send the affected URLs to whoever manages your international SEO. Include the value you found and the value you expected so they can trace the error to other pages that use the same rule.
In Search Console, inspect each corrected page with the URL Inspection tool. Under Page indexing, check Last crawl. If the crawl happened before your fix, the report still describes the old page. Once you see a crawl after the fix, compare User-declared canonical with Google-selected canonical. If they still differ, check where your internal links and sitemap point and how similar the two pages are. The live test shows what your site serves now. Google’s choice of canonical appears in the indexed result.
Hreflang audit FAQ
Is a missing x-default tag an error?
Google treats x-default as optional. It identifies a fallback page for visitors whose language or region doesn’t match any of the versions you list. If you use a language or country selector as the fallback, open its URL and make sure visitors can choose their language or country there.
How do I check hreflang across different domains?
Record the full URL on each domain. On each page, look for the other page’s URL under its correct hreflang code. If a distributor manages the page with the missing return link, send them the exact URL to edit, the code to use, and the URL it should point to. Check the public markup again once the change is live.
Michele Eccher