When your store serves more than one language or more than one country, the same product can live at several addresses: one in English, one in French, one in Spanish, each with its own price and currency. Without a clear signal, search systems can treat those pages as duplicates, show the wrong language to a shopper, or show a price in the wrong currency.

Platform screens change. If a menu name here does not match what you see, check the vendor docs linked in Sources for the current path.

Google says that if you have multiple versions of a page for different languages or regions, telling Google about them will help Google Search point users to the most appropriate version by language or region. Google also says to use different URLs for each language version, rather than changing the content on one URL based on cookies or browser settings, because Google might not find and crawl all your variations that way.

What this guide covers

This guide walks through the international job in five parts. First, you map your versions, and you learn which pages need the signal and which do not. Second, you choose one method to carry the signal, and you use only that method. Third, you write the codes correctly, so each version is labeled with the right language and region. Fourth, you keep prices, currency, and canonical tags correct on each version, so a shopper in each market sees the right offer. Fifth, you check the signal after every change, because one missing link can break the whole set.

Hreflang does not translate your pages, and it does not create a new market for you. It labels the versions you already have, so the right version reaches the right shopper.

Who does each step

Marketer work is listing the languages and regions you serve, checking that each version has the right price and currency, and checking what search systems show for each market. Developer work is adding the hreflang tags or the sitemap entries, fixing the URL structure, and fixing anything that needs a template change. The owner decides which markets you serve, which languages you translate fully, and which pages are worth translating at all. Start with your best selling products in your largest markets, not with a full translation of the whole catalog at once.

Step 1: map your versions, and learn which pages need the signal

Start by listing the versions of your site. For each language and region, write down the URL pattern, such as a folder for French or a separate domain for Germany. Then list the page types that exist in more than one version: product pages, category pages, and the main content pages. A page needs hreflang only when it has a version in another language or region. A page that exists in one language only does not need the signal, and adding it will only create noise.

Check that each version is a real translation, not the same English text at a different address. Google says localized versions of a page are only considered duplicates if the main content remains untranslated, so a page that keeps the English text and only changes the price is not a localized version. Translate the main content, including the title, the description, and the key facts, before you add the signal.

Step 2: choose one method, and use only that method

Google says there are three ways to indicate alternate pages: HTML link tags in the head of the page, HTTP headers, and a sitemap. Google treats the three methods as equivalent, and says using more than one brings no benefit in search. Pick one method, and use it for every page. Mixing methods creates two sets of links that can disagree, and a disagreement is harder to find than a missing link.

For most shops, HTML link tags are the simplest method. Each page carries a set of link tags in its head, one for each version including itself, with the language code and the full address of that version. The set is identical on every version of the page. The code block in the machine-readable section shows the pattern for a page with three versions.

For large catalogs, a sitemap can be simpler, because the annotations live in one file rather than in every page template. The sitemap method uses a url element for each version, with child entries that list every version including itself, and it needs the xhtml namespace declared at the top of the file. Pick the sitemap method only if your team can generate and check that file reliably, because a sitemap that is out of date is worse than a template that is always current.

Step 3: write the codes correctly, so each version is labeled right

Each version is labeled with a language code, and optionally a region code. The language code is the two letter ISO 639-1 code, such as en for English, fr for French, and es for Spanish. The region code is the two letter ISO 3166-1 alpha-2 code, such as US, CA, GB, and MX, and it is optional. A code with a region alone, and no language, is not valid. A code that puts a country in the language slot is wrong: be is Belarusian, not Belgium.

Use the region code only when the content genuinely differs by region, such as a different price, currency, spelling, or legal text. If the French page for France and the French page for Canada carry the same content, use the plain language code fr for both, or use fr with a generic fr version as the catch all, and fr-CA for the Canadian version. Google says that when you have several regional versions of one language, it is a good idea to also provide a generic version for speakers of that language in other places.

Add an x-default entry for visitors who match none of your versions. The x-default version is usually your default language page, and it is the page a shopper sees when their language is not one you serve. Use en-GB for the United Kingdom, not en-UK, because Google ignores the region in en-UK.

Step 4: keep price, currency, and canonical tags right on each version

Hreflang labels the relationship between versions. It does not fix a price, a currency, or a canonical tag that is wrong. Each version must show the price in the currency its shoppers use, and the price in the structured data must match the price on the page. A French page that shows a price in dollars will confuse a shopper in France, and a system that quotes it will quote the wrong price.

Each version must be its own canonical page, in its own language. Google says that when you use hreflang, you should specify a canonical page in the same language. That means the French page points to itself as canonical, not to the English page, and the English page points to itself.

Check the links on each version. Every version must list itself as well as all other versions, and every link must be reciprocal: if the English page lists the French page, the French page must list the English page. A link that points one way only is ignored. Every alternate URL must be fully qualified, including the transport method, such as https, and not a relative address. A relative address in a hreflang tag is a broken link, and the set will not work.

Step 5: check the signal after every change

Hreflang breaks quietly. A page is added in one language and not in the others, a version is removed and its links stay behind, a code is mistyped, or a template change drops the tags from a set of pages. None of these breaks shows up on the page itself, because the tags live in the head, where shoppers never look. You have to check the signal on purpose, after every change.

Add three checks to your routine after any catalog or template change. First, open a product page in each language, view the page source, and confirm the hreflang set is present, identical on every version, and lists every version including itself. Second, confirm each alternate URL returns a live page, and not a redirect or an error, and that each URL is its own canonical. Third, confirm the price and currency on each version match the market that version serves.

Machine-readable version you can copy

This section gives you two copy-ready blocks, built only from formats verified in Google's localized versions guide. Replace the example addresses and codes with your own, and keep every address identical to the live page.

First, HTML link tags for a page with three versions: English for the US, French for Canada, and Spanish for Mexico, plus an x-default entry that points at the English page. Each version carries the same set of tags, including a tag for itself. The tags go in the head of the page. Replace the bracketed addresses with your real URLs, and remove any version you do not serve, rather than leaving a tag that points at a page you do not have.

code
<link rel="alternate" hreflang="en-us" href="https://www.example.com/products/[wool-throw]" />
<link rel="alternate" hreflang="fr-ca" href="https://www.example.com/fr-ca/products/[wool-throw]" />
<link rel="alternate" hreflang="es-mx" href="https://www.example.com/es-mx/products/[wool-throw]" />
<link rel="alternate" hreflang="x-default" href="https://www.example.com/products/[wool-throw]" />

Second, the same set as a sitemap entry. The sitemap method uses a url element for the page, with child xhtml:link entries that list every version including itself, and it needs the xhtml namespace declared at the top of the file. Use one method only, HTML or sitemap, not both.

code
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <url>
    <loc>https://www.example.com/products/[wool-throw]</loc>
    <xhtml:link rel="alternate" hreflang="en-us" href="https://www.example.com/products/[wool-throw]" />
    <xhtml:link rel="alternate" hreflang="fr-ca" href="https://www.example.com/fr-ca/products/[wool-throw]" />
    <xhtml:link rel="alternate" hreflang="es-mx" href="https://www.example.com/es-mx/products/[wool-throw]" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.com/products/[wool-throw]" />
  </url>
</urlset>

Worked example: a candle shop that kept showing the wrong currency

Take a small candle shop that sells in the US, Canada, and Mexico. The shop had three versions of each product page: English for the US, French for Canada, and Spanish for Mexico. Shoppers in Canada kept seeing the US page, with prices in dollars, and shoppers in Mexico kept seeing the English page. The shop had hreflang tags, but the set was broken in three ways.

The English page listed the French and Spanish pages, but the French page listed only itself, so the links were not reciprocal. The Spanish page used the code es-419, which Google does not support, so that version was ignored. The Canadian page pointed its canonical tag at the US page, so the Canadian version was treated as a duplicate of the US version, not as its own page.

Frequently Asked Questions

Do I need hreflang if my site is in one language?

No. Hreflang is for pages that have a version in another language or region. A one language site does not need it, and adding it will only create noise.

Which method should I use: HTML tags, headers, or a sitemap?

Pick one method, and use it for every page. Google treats the three as equivalent, and says using more than one brings no benefit. HTML tags are simplest for most shops. A sitemap suits large catalogs, but only if your team can generate and check that file reliably.

What is x-default, and do I need it?

The x-default entry names the page for visitors whose language settings match none of your versions. It is usually your default language page. Add it when you serve more than one language, so a shopper whose language you do not serve still lands on a real page.

Why is my French page not showing in French search results?

Check the set first. Every version must list itself and all other versions, every link must be reciprocal, every code must be valid, and every alternate URL must be live and its own canonical. A single broken link, a wrong code, or a canonical tag that points at another version can break the set.

Does hreflang guarantee the right version will show?

No. Hreflang is a signal, not a command. Google uses it as a strong hint for language and region targeting, but it also uses other signals, such as the visible content of the page. A correct set makes the right version likely, not certain, and a page that is not truly translated will not be treated as a localized version.