Skip to the content

hreflang and international versions

Tell search engines which language or country version of a page to show to whom.

What you will be able to do

Set up hreflang so each market's searchers land on their own version, and avoid the missing return links that make it fail.

How it reaches growth

  1. hreflang and international versions
  2. Searchers get the version in their language and for their market
  3. They land on prices, delivery and support that apply to them
  4. More of them sign up or buy
  5. Growth in every market you serve

What it is

When a site has versions of a page for different languages or regions, hreflang annotations tell Google they are localized variations of the same content, so it can point each searcher to the most suitable one.

Google says it does not use hreflang or the HTML lang attribute to detect a page's language; it detects that itself. hreflang only links the versions together.

How it works

There are three ways to add it: link elements in the page's HTML, HTTP headers, or the XML sitemap. Google says the three are equivalent, and using more than one brings no benefit.

Each version must list itself and every other version. If two pages do not both point to each other, Google ignores the annotations; missing return links are the most common mistake.

Codes are a language code, optionally followed by a region code: en, en-GB, es-MX. A region cannot be given on its own. The reserved value x-default names the page for searchers who match no listed version, such as a language selector.

Addresses must be complete, with the protocol, and versions may sit on different domains. Language versions count as duplicates only when the main content has not been translated.

Why it matters for growth

International growth from search depends on the right version reaching the right market. A searcher in Mexico who lands on the Spanish page for Spain sees the wrong prices, delivery or support, and converts worse, however well the page ranks.

How to check it

  1. Pick one important page and list all its versions.
  2. Check that each version lists itself and all the others, with the same codes.
  3. Search as a user in each market would, and note which version appears.

Rules of thumb

  1. Every version lists every version, itself included.
  2. Use one method, consistently.
  3. Add x-default for searchers who match none of your versions.

Rules of thumb are starting points for a decision, not laws.

Common mistakes

  • Missing return links, so Google ignores the whole set.
  • A region with no language, which is not accepted, or a wrong region code: the code for the United Kingdom is GB, not UK.
  • Translating only the navigation, so pages whose main content is the same count as duplicates.

A worked example

A made-up meal-kit service sells in the UK and Ireland, with different prices and delivery days. Its Irish pages pointed to the UK pages with hreflang, but the UK pages did not point back, so the annotations were ignored and many Irish searchers landed on UK pages.

Irish visitors who landed on UK pages subscribed at 1%, against 3% for those who landed on Irish pages, since the UK pages showed delivery days that did not apply to them. Suppose 8,000 of 20,000 Irish organic visits a month landed on UK pages: sending them to the Irish pages is worth about 160 more subscriptions a month.

The business and its numbers are made up to show the arithmetic.

Apply it

The simulations for this topic are being made.

Get one email when it is out, and use the steps below on your own product meanwhile.

One email when new simulations are out. Nothing else.

On your own product

  1. List your markets and languages.
  2. For one important page, write out every version and its code.
  3. Check that each version links to all the others and to itself.

Questions

Does hreflang make Google show the right version?

It tells Google the versions belong together, so it can point searchers to the most suitable one. Google still decides.

Can versions be on different domains?

Yes. Google says alternate addresses do not need to be on the same domain.

Do I need x-default?

It is recommended, and designed for pages such as language selectors that serve searchers who match no listed version.

More in Technical SEO