Hreflang audit checklist for sites with many country versions

Check hreflang across every country site: valid codes, return links, x-default, canonical and redirect conflicts, sitemap delivery and release checks.

By Seopaca team · · 6 min read

Paca the alpaca checking a row of small flags on signposts that point to different country sites

Use this checklist before and after a migration, when you launch a new market, and after any release that touches page templates on a site with several language or country versions. It checks that every version is listed, that the codes are valid, that versions link back to each other, that canonical tags and redirects agree with hreflang, and that the annotations live in one place. Run it by template and market pair, so one broken template shows up as one issue instead of thousands of URL errors.

Hreflang tells Google which localized versions of a page exist, so Search can point each searcher to the most suitable one. The rules below follow Google’s documentation on telling Google about localized versions of your page at the time of writing.

Say you run 12 country sites on one platform, each with 25 page templates. That gives 300 template and market pairs to check. It is a far smaller and clearer job than reviewing the millions of URLs behind them one by one.

Which versions and markets should the audit cover?

  • List every domain, subdomain and folder that serves a language or country version.
  • Record the URL pattern for each market, such as example.com/de-de/ or example.de.
  • Map each template, such as product, category, article and store pages, to the markets where it exists.
  • Note which pages exist in only some markets, so a missing alternate is expected and not flagged as an error.
  • Pull a URL sample for each template and market, using the method to segment URLs by template and market from our large-site audit guide.
  • Name an owner for hreflang in each market, plus a central owner for the templates and feeds that print the tags.

Are the language and region codes valid?

  • Check that every language code uses ISO 639-1, such as de, fr or pt.
  • Check that region codes, where used, follow ISO 3166-1 alpha-2 and come after the language, such as de-AT or en-GB.
  • Flag any value that names a region without a language. Google does not accept a country code by itself.
  • Flag en-UK. The region code for the United Kingdom is GB, and Google says reserved codes such as UK and EU have no effect.
  • Flag codes outside these standards, such as es-419 for Latin America, which Google does not support at the time of writing.
  • Add a script code only where the region does not settle it, such as zh-Hans for Simplified Chinese.
  • Confirm that each set has one x-default entry for the fallback page, usually a language selector or a global home page. Google’s post on x-default explains the use case.
  • Confirm that each page lists every version in its set, including itself.
  • Check return links. If page A points to page B and page B does not point back, Google ignores those tags.
  • Compare the full set on every version. The list of alternates should be the same everywhere.
  • Use fully qualified URLs with the protocol, such as https://example.com/de-de/. Google does not accept relative or protocol-relative URLs.
  • Check that alternate URLs use the preferred form of each address: HTTPS, the right host, and your rules for trailing slashes and letter case.
  • Report broken return links by market pair, such as fr-FR to fr-CA. A pattern by pair usually points to one template or one data feed.

Do canonical tags, redirects and hreflang agree?

  • Check that each localized page has a canonical tag that points to itself or to a page in the same language.
  • Flag canonical tags that point to a different language version. Google’s guidance on consolidating duplicate URLs says to pick a canonical in the same language, or the best substitute language only when no same-language page exists.
  • Flag hreflang targets that redirect, return a 4xx or 5xx status, or carry a noindex tag. Every URL in a set should return 200 and be indexable.
  • Decide on purpose how same-language regional pages work when their content is nearly identical, such as en-US and en-CA, and follow Google’s guidance on managing multi-regional sites.
  • Check that XML sitemaps list only canonical, indexable URLs for each market.

Is hreflang delivered in one consistent place?

  • Record which method each site uses: link elements in the HTML head, HTTP Link headers or XML sitemaps.
  • Use HTTP headers for files that are not HTML, such as PDFs.
  • Consider sitemaps for large sets. With 20 versions of a page, each version would carry 20 link elements in its head. Sitemaps keep that out of page code and are easier to generate from one source.
  • Note that Google treats the three methods as equivalent, and using more than one brings no benefit in Search.
  • Flag sites where two methods are active and disagree. Often one is left over from an old platform or a past migration.
  • Check sitemap syntax: the xhtml namespace, one <url> entry per version, and the full set of xhtml:link children inside each entry.
  • Check that link elements sit inside the <head> in both the raw and the rendered HTML of changed templates.

Do people and crawlers reach the right market?

  • Give each language version its own URL. Google recommends separate URLs over cookies or browser settings for switching language.
  • Avoid automatic redirects from one language version to another based on a guessed language or location. Google advises against them, because visitors and crawlers may never reach the other versions.
  • Remember that Googlebot usually crawls from the United States and does not send an Accept-Language header, according to Google at the time of writing.
  • Offer a visible language or country selector made of plain links that crawlers can follow.
  • Use x-default for a home page that redirects visitors or shows a selector.
  • Check that banners suggesting another market do not cover or replace the page content.

How do you keep hreflang correct after releases?

  • Add hreflang tests to staging for any template, routing or CMS release: set completeness, return links, valid codes and the status of every target.
  • Crawl a fixed sample per template and market before and after each release, and compare the sets.
  • Alert on changes between crawls, such as a market dropping out of sets or a rise in targets that do not return 200.
  • Generate hreflang from one source of truth, such as a table that maps each page ID to its URL in every market. Avoid hand edits per market.
  • Update sets when you launch, merge or close a market, together with redirects and sitemaps. Our governance checklist covers these international and brand rules.
  • Send each market owner a short report on their own market pairs every month.

How to run this checklist

  1. Build the inventory and the template map first, because every later check depends on them.
  2. Run the checks on a sample for each template and market pair.
  3. Group failures by template and pair, and fix them at the template or feed level.
  4. Recrawl the sample after each fix, then check the full sets.
  5. Repeat the release checks on every template release, and the full audit at least once a quarter.

Seopaca’s Site Audit runs these checks by template and market, so each regional team sees its own pairs. The checklist works with any crawler, and the inventory alone will show you where most hreflang problems start.

Frequently asked questions

Should hreflang go in the HTML or the XML sitemap?

Either works. Google treats link tags in the HTML head, HTTP headers and XML sitemaps as equivalent, and using more than one method adds no benefit. Large sites with many versions often choose sitemaps, because the sets stay out of page code and can be generated from one mapping table. Whichever you choose, use one method per site so the sets cannot disagree.

What does x-default do in hreflang?

The x-default value marks the page Google should show when a searcher's language or region matches none of the versions you list. It is usually a global home page or a language selector. Add it to each hreflang set, list it on every version in that set, and point it to the same URL each time. It is optional, but it helps on home pages that redirect visitors.

Can a canonical tag point to another language version?

Usually it should not. Each localized page should point its canonical tag at itself, or at another page in the same language. Google's guidance is to choose a substitute language only when no same-language page exists. A canonical tag that points to a different language version signals that the pages are duplicates, which works against the hreflang set you built.

Why does Google ignore some hreflang tags?

The usual causes are missing return links, invalid codes and badly formed URLs. If page A lists page B but page B does not list page A, Google ignores those tags. Codes such as en-UK or es-419 are not supported at the time of writing, and relative URLs are not accepted. Targets that redirect, fail or carry noindex also weaken the set.

How often should we audit hreflang?

Run automated hreflang checks on every release that touches templates, routing or the CMS, and run a full audit at least once a quarter. Audit again before and after a migration, a domain change or a new market launch. Between audits, compare crawls and alert on changes, such as a market dropping out of sets, so problems surface within days.

HreflangInternational SEOSite auditCanonical

Audit your largest sites by template and market

Site Audit and Log Analysis show what breaks, where crawlers spend their time and which fix matters most. Access is by application, and we review every request case by case.