Hreflang for the UK, Ireland, Germany and Austria: getting language editions right
TL;DR
Difficulty: Advanced
Two editions in the same language look alike to Google, so it shows one of them everywhere unless you tell it which is which.
- Hreflang names each page's sister editions with a language code (ISO 639 1) and an optional country code (ISO 3166 1 alpha 2). The United Kingdom is GB, never UK.
- Every page lists itself and every sister, and every sister must link back, or Google ignores the set.
- Each edition is canonical to itself, and hreflang points only at those canonical URLs.
- Never redirect by IP address: Googlebot crawls mostly from the United States and would never see your other editions.
- Make the editions genuinely local (currency, VAT, delivery, returns, legal details), and for Bing also declare the page language in the lang attribute and the content language meta tag.
What to read first
You sell to the UK and Ireland, or to Germany and Austria, and Google keeps showing customers the wrong country's page, with the wrong currency and the wrong tax. This chapter explains hreflang from Google's own documentation, the codes for exactly these four markets, the errors that quietly cancel it, and how a garden furniture shop in Nottingham adds an Irish edition properly, with every line of code.
The question behind this chapter
You sell in two countries that share a language. An Irish customer searches for a garden dining set and lands on your British page: prices in pounds, VAT at the British rate, delivery times for Derby, a returns address in Nottingham. Most people leave. The ones who stay ring you to ask whether you deliver to Kilkenny at all.
The same thing happens between Germany and Austria. A shop in Hannover opens an Austrian edition, and Google keeps showing Austrians the German page, with German VAT and German delivery terms. Search engines are not being difficult here. Two pages in the same language look almost identical to a machine, and unless you tell it which one belongs to which country, it picks one and moves on.
This chapter is about telling it. The tool is called hreflang, a small annotation that says "this page has a sister page for that language and that country". It is one of the most documented features in Google Search and one of the most often broken. I will go through what Google's own documentation says, the codes for exactly the four markets this blog writes for (the UK, Ireland, Germany and Austria), the three ways to add the annotations, the errors that silently cancel them, how hreflang and canonical tags have to agree, the URL structure decision, why redirecting visitors by IP address hides your editions from Google, what Bing does differently, and how to check the whole thing. If canonical tags and duplicate content are new to you, read that chapter first: hreflang sits on top of it.
Example: the shop that opens a second market. Throughout this chapter the example is Ashby Outdoor, an online shop for garden and outdoor furniture in Nottingham (ashbyoutdoor.example), owned by Tom. It is invented. It has 1,850 products in 14 categories, organic search brings 38,000 sessions in May and 14,000 in January, organic visitors convert at 1.6%, and the average order is £410. This summer Tom starts selling to Ireland. His plan is simple: copy the British pages, swap pounds for euro, and let Google sort out who sees what. By the end of this chapter you will know why that plan does not work on its own, and exactly what Tom builds instead.
What hreflang does, and what it does not do
Hreflang is an attribute on a link that names an alternate version of a page and the language, and optionally the country, that version is for. Google describes it as a way to tell Google Search about localised versions of your page, so it can point searchers to the version in their language or for their region1. A set of pages that all point to each other forms a cluster, and Google treats the cluster as one piece of content with several addresses.
Three things follow from that, and all three are documented or stated by Google:
- Hreflang chooses the URL, not the ranking. It does not make a page rank higher. It lets Google swap in the right edition for the searcher once the content ranks. In May 2025 John Mueller of Google explained that for two pages in the same language Google often picks one as canonical, and that "often hreflang will still swap out the URL"2.
- It is a hint, not a command. Google uses it together with other signals. If the annotations contradict each other or the canonical tags, Google ignores them1.
- It does not tell Google what language a page is in. Google detects the language from the visible content with its own algorithms. It does not use hreflang or the HTML
langattribute for that1.
What it cannot do is just as important. Hreflang does not get a page indexed. It does not fix thin or duplicate content. And it does not stop a redirect, a blocked crawl or a wrong canonical tag from undoing it.
Example: what Tom would gain. Tom's best category, garden dining sets, ranks well in Google UK. Without hreflang, an Irish searcher on Google in Ireland sees the British dining sets page, because that is the only one Google knows to be strong. With a working hreflang cluster, Google still ranks the same content, but swaps the link for the Irish edition at ashbyoutdoor.example/ie/. Tom does not have to build a second set of rankings from scratch in Ireland. He has to make sure Google understands that the Irish page is the sister of the British one, and that both are real, crawlable, canonical pages.
Which edition will a searcher see?
Before the details, here is the decision as Google's documentation describes it, from the searcher's side. The important point: every step depends on the annotations being valid. One broken link in the chain and Google falls back to whatever URL it chose as canonical.
Example: three searchers, one cluster. Tom's dining sets page has two editions, British and Irish, and a fallback. A searcher in Leeds with an English browser matches the British code exactly and sees the British page. A searcher in Cork matches the Irish code and sees the Irish page. A searcher in Amsterdam whose browser is set to English matches neither country. Because Tom has set a fallback (the x-default page, explained below), Google shows her that one. If Tom's Irish page had no return link to the British page, all three would see whichever URL Google picked as canonical, most likely the British one.
The codes: language first, then country
Every hreflang value is a code. Google's documentation is precise about which codes it accepts1:
- The language comes first, as a two letter code from ISO 639 1 (the International Organization for Standardization (ISO) list of language codes):
enfor English,defor German,gafor Irish3. - The country is optional and comes second, as a two letter code from ISO 3166 1 alpha 2, the ISO list of country codes:
GBfor the United Kingdom,IEfor Ireland,DEfor Germany,ATfor Austria1. - You can give a language alone, but never a country alone. The first code is always read as a language, so a value of just
iemeans Interlingue, a constructed language, and a value of justukmeans Ukrainian4. Google states plainly that you cannot specify the country code by itself, and that it does not derive the language from a country code1. - Case does not matter.
en-gbanden-GBmean the same.
The codes come from the general standard for language tags on the web, Best Current Practice 47, published as Request for Comments (RFC) 56465. The registry behind it, kept by the Internet Assigned Numbers Authority (IANA), lists every valid subtag. For the United Kingdom it lists GB. It does not list UK as a region at all4. That is why the most common error in British hreflang, en-uk, is not a typo to be forgiven. It is a code that does not exist.
Here are the codes for the four markets this blog writes for, and the mistakes I see most:
| Code | Meaning | Valid? | Why |
|---|---|---|---|
en-GB | English for the United Kingdom | Yes | Language en, country GB |
en-IE | English for Ireland | Yes | Language en, country IE |
de-DE | German for Germany | Yes | Language de, country DE |
de-AT | German for Austria | Yes | Language de, country AT |
en | English for anyone | Yes | Language only, no country |
ga-IE | Irish language for Ireland | Yes | Only if the page really is in Irish |
x-default | Fallback for everyone else | Yes | A reserved value, not a language |
en-uk | Meant for the UK | No | The country code is GB, and UK is not a valid region code |
ie | Meant for Ireland | No | Read as the language Interlingue, and a country alone is not allowed |
uk | Meant for the UK | No | Read as the language Ukrainian |
en-NI | Meant for Northern Ireland | No | NI is Nicaragua, and Northern Ireland has no country code of its own |
de-at-wien | Meant for Vienna | No | Hreflang has no city level |
en-EU | Meant for the EU | No | EU is not an ISO 3166 1 alpha 2 country code, and Google supports only those |
en_GB | Meant for the UK | No | An underscore, where the format needs a hyphen |
at | Meant for Austria | No | Not a language code at all, and a country alone is not allowed |
One word on the Irish language row. ga is Irish. An English page for Irish customers is en-IE, never ga-IE. Mixing them up tells Google that an English page is written in Irish, which it will not believe, and the annotation is wasted.
Example: Tom's developer's first attempt. The developer who looks after Ashby Outdoor adds hreflang in an afternoon. He writes en-uk for the British pages and ie for the Irish ones, because that is how the team talks about the two shops. Both values are invalid. en-uk names a region that does not exist in the registry, and ie is read as a language code. Google ignores both, and nothing changes in the results. Nothing in the page warns anyone, either: the site looks perfect in a browser, because browsers do not read hreflang. The fix is two lines in the template, en-GB and en-IE. The lesson is the reason this table exists.
Three ways to add hreflang
Google accepts hreflang in three places and treats them as equivalent: link elements in the HTML head, an HTTP Link header, or the XML sitemap1. Using more than one adds nothing in Google Search and gives you more places to make a mistake. Pick one per type of file.
In the HTML head
Each page lists every edition in its cluster, including itself, as a separate link element inside a well formed <head>1. In June 2024 Google clarified that each alternate needs its own link element; several alternates combined into one element do not count6. URLs must be fully qualified, with https:// and the domain; a relative path such as /ie/ is wrong1.
<!-- On BOTH the British and the Irish page: the same three lines -->
<link rel="alternate" hreflang="en-GB" href="https://ashbyoutdoor.example/garden-furniture/dining-sets" />
<link rel="alternate" hreflang="en-IE" href="https://ashbyoutdoor.example/ie/garden-furniture/dining-sets" />
<link rel="alternate" hreflang="x-default" href="https://ashbyoutdoor.example/garden-furniture/dining-sets" />
In an HTTP header
For files that have no HTML head, such as a PDF, the server sends the same information in a Link header, the general mechanism for typed links defined in RFC 82887. Google gives PDFs as the typical case1.
HTTP/1.1 200 OK
Content-Type: application/pdf
Link: <https://ashbyoutdoor.example/guides/teak-care.pdf>; rel="alternate"; hreflang="en-GB",
<https://ashbyoutdoor.example/ie/guides/teak-care.pdf>; rel="alternate"; hreflang="en-IE",
<https://ashbyoutdoor.example/guides/teak-care.pdf>; rel="alternate"; hreflang="x-default"
In the XML sitemap
The sitemap version declares the xhtml namespace and gives each <url> entry a child element per edition, again including itself1. Every edition gets its own <url> entry with the full set. If you are unsure what a sitemap is for, the chapter on robots.txt, meta robots and XML sitemaps covers it.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://ashbyoutdoor.example/garden-furniture/dining-sets</loc>
<xhtml:link rel="alternate" hreflang="en-GB" href="https://ashbyoutdoor.example/garden-furniture/dining-sets"/>
<xhtml:link rel="alternate" hreflang="en-IE" href="https://ashbyoutdoor.example/ie/garden-furniture/dining-sets"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://ashbyoutdoor.example/garden-furniture/dining-sets"/>
</url>
<url>
<loc>https://ashbyoutdoor.example/ie/garden-furniture/dining-sets</loc>
<xhtml:link rel="alternate" hreflang="en-GB" href="https://ashbyoutdoor.example/garden-furniture/dining-sets"/>
<xhtml:link rel="alternate" hreflang="en-IE" href="https://ashbyoutdoor.example/ie/garden-furniture/dining-sets"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://ashbyoutdoor.example/garden-furniture/dining-sets"/>
</url>
</urlset>
Example: which method Tom picks, and why. Tom's shop has about 2,600 useful pages. The template that renders every product and category page already knows each page's Irish twin, so the developer generates the link elements in the HTML head from the same data that builds the page. That keeps the annotation next to the thing it describes: if a product is deleted, its hreflang disappears with it. The 30 care guides that exist as PDFs get the HTTP header, set by one server rule. Tom does not also add hreflang to the sitemap. A second copy of the same truth only creates the chance that the two disagree after the next product import.
Return links: every page must point back
This is the rule that breaks most clusters. Google's documentation: if two pages do not both point to each other, the tags will be ignored1. The reason is protection. Without it, anyone could declare your page to be the "Irish version" of theirs. A return link proves that both sides agree.
Two further rules come with it1:
- Every page lists itself. The British page names the British URL as
en-GBas well as the Irish one. In the HTML method, the block of link elements is identical on every page in the cluster. - Every link points at a working, canonical URL. A return link that lands on a redirect, a 404 error or a page whose canonical tag points elsewhere does not count as a return link.
How common are the failures? The best evidence is an industry study, not a Google figure: in August 2023 Ahrefs analysed 374,756 domains that use hreflang and found that 67% had at least one issue8. Ahrefs sells SEO tools, including a crawler that checks hreflang, and the study does not explain how the domains were chosen, so read it as an indication rather than a census. The pattern in it matches what Google's documentation warns about.
Note that Ahrefs itself points out that x-default and self references are recommended practice rather than strict requirements8. The issues that really break a cluster are the next three: links to redirected or broken pages, missing return links, and links to pages that are not canonical.
Example: the renamed products. Two months after launch, Tom renames 96 products ("Harlow six seat dining set" becomes "Harlow teak dining set, six seats") and his platform gives the British pages new URLs, with 301 redirects from the old ones. The British pages now point to the Irish twins correctly. But the Irish pages were generated from an export taken before the rename, so they still point to the old British URLs, which redirect. For Google, each of those 96 Irish pages names a British sister that does not exist as a final page, and each British page names an Irish sister that does not point back to it. All 96 clusters break at once. Nothing on screen shows it. The fix is to generate both editions' annotations from the same live product table, never from a copy.
Hreflang and canonical tags must agree
A canonical tag says "of all the URLs showing this content, this one is the main one". Hreflang says "this content has sister pages for other markets". They answer different questions, and they must not contradict each other.
What Google documents:
- When you use hreflang, specify a canonical page in the same language, or the best possible substitute language if there is none9.
- A canonical link element that carries an hreflang attribute is not used for canonicalisation at all. Alternate versions are declared with the alternate link, not the canonical one9.
- For same language pages for different regions, Google recommends picking a preferred version per region with
rel="canonical"and using hreflang so the right regional URL is shown10. - Localised pages are only treated as duplicates if the main content stays untranslated1.
That last point is where the English and the German pairs differ from, say, an English and a German edition. A British and an Irish page about the same dining set are in the same language and may be nearly word for word the same. Google's own troubleshooting guide lists "language variants without localized annotations" as a reason why the canonical it selects differs from the one you wanted, with a British and Australian English example, and names hreflang as the remedy11. And Mueller's May 2025 comment describes what happens even with correct hreflang: for pages that are the same, one is often chosen as canonical, the other URL is still swapped in through hreflang, and Search Console reports everything on the canonical2. That second part is a Google employee's statement on social media, not documentation, but it matches what site owners see.
So the rule for this blog's four markets is:
- Each edition's canonical tag points to itself. The Irish page is canonical to the Irish URL, never to the British one.
- Hreflang points only to those self canonical URLs.
- Each edition carries real local differences, so it is not a duplicate in the first place (more on that below).
Example: the canonical that undid everything. Tom's developer, worried about "duplicate content", sets every Irish page's canonical tag to the British page. The reasoning sounds careful. The effect is the opposite of what Tom wants: the Irish page now tells Google "I am a copy, index the British one instead", while its hreflang says "I am the Irish edition". Google cannot obey both, and the canonical tag wins: the Irish pages drop out and Irish searchers keep seeing pounds. Changing one line per template, so each page is canonical to itself, restores the cluster.
The same applies to filter pages. Tom's category pages produce thousands of filtered URLs (by material, colour, size, seats and price), and most of them carry a canonical tag pointing to the unfiltered category. Hreflang belongs only on the canonical category URLs, never on the filter variants. The chapter on faceted navigation, filters and pagination, later in this series, deals with those filters in full.
The x-default page: for everyone you did not name
x-default is a reserved value that marks the page for searchers whose language and country match none of the other codes1. Google introduced it in April 2013, mainly for international home pages that let visitors choose a country12. It needs no language code and points at one URL per cluster.
You have two sensible choices:
- A chooser page that asks the visitor where they want to shop. This suits a business with many equal markets.
- Your main edition acting as the fallback. This suits a business with one home market and one or two additions.
Example: Ashby's fallback. Ashby Outdoor is a British shop that now also sells to Ireland. A visitor from the Netherlands or the United States can buy from neither edition easily, but the British edition is the more complete one, with the larger range and the full guides. Tom sets x-default to the British URL in every cluster, as in the code above. That gives every searcher outside the UK and Ireland a sensible page, and it removes the most common item from the Ahrefs list.
How to structure the URLs
Before any code, you decide where the second edition lives. Google's documentation compares four options10:
| Option | Example | What Google lists in favour | What Google lists against |
|---|---|---|---|
| Country code top level domain (ccTLD) | ashbyoutdoor.ie | A clear signal for one country, server location does not matter, easy to separate | Can be costly and limited in availability, more infrastructure, ccTLD rules can be strict, one country only |
| Subdomain on a general domain | ie.ashbyoutdoor.example | Easy to set up, servers in different places possible, easy to separate | Users may not know whether ie means a language or a country |
| Subdirectory on a general domain | ashbyoutdoor.example/ie/ | Easy to set up, low maintenance, one host | Users may not recognise the targeting from the URL, one server location, harder to separate |
| URL parameter | ashbyoutdoor.example/?loc=ie | Nothing | Not recommended, hard to segment, users may not recognise the targeting |
Google also says that a ccTLD sends a strong signal that a site is meant for one country, and lists other signals of the intended audience: local addresses and phone numbers, local language and currency, links from other local sites, and a Business Profile where one exists10. Search Console once let you set a target country for a general domain. That setting went in 2022, when Google retired the International Targeting report and said it would continue to support and use hreflang13.
My view: for a small or medium business adding one or two markets, a subdirectory on the existing domain is the best value. Every edition shares the domain's history and links, there is one site to maintain, one certificate, one analytics property. A ccTLD earns its cost when the local market is large enough to deserve its own brand presence and its own link building. A URL parameter is never the answer.
There is a quieter decision inside this one: where the existing edition goes. Moving every British URL into a new /uk/ folder means redirecting the whole established site, which is a relaunch with all its risks (the relaunch chapter later in this series covers them). Keeping the existing edition at the root and adding the new market in a subdirectory avoids that.
Example: where Tom puts Ireland. Tom considers ashbyoutdoor.ie. It would look local, but it starts with no history, needs its own links and doubles the setup work. He keeps the British shop exactly where it is, at the root, and adds the Irish edition under /ie/. Note the difference between the path and the code: the folder can be called anything (/ie/, /ireland/), because it is just a URL. The hreflang value must still be en-IE. That is how a shop can have a /uk/ folder and still never write en-uk in its code.
Never redirect visitors by IP address
The most tempting shortcut in international sites is the automatic redirect: look up where the visitor's IP address is, and send them to "their" edition. Google advises against it, for two reasons it documents1014:
- Googlebot mostly crawls from the United States. Google states that the default IP addresses of its crawler appear to be based in the USA, and that it sends requests without an
Accept-Languageheader, the browser setting that says which languages a visitor prefers14. A redirect that depends on the visitor's location or language therefore treats Googlebot as an American with no language preference. (How the crawler finds and fetches pages in the first place is the subject of the first chapter of this series.) - Redirects can stop users and search engines from seeing all versions. Google advises against redirecting users automatically from one language version to another, and against adapting content by IP analysis, which it calls difficult and generally unreliable10.
Google does crawl from some other countries too, but it also says it does not vary its crawl location to find every variant, which is why it recommends separate URLs annotated with hreflang1410. A page that changes by location at the same URL leaves Google unable to see every edition.
What to do instead: show a small, dismissible banner. "It looks like you are in Ireland. Shop in euro on the Irish site?" with a link. The visitor decides, Googlebot crawls both editions, and nobody is trapped.
Example: the plugin that hid Ireland. Tom installs a geolocation plugin with two rules: visitors in Ireland go to /ie/, and visitors outside Ireland who open an /ie/ page go back to the British page, "so nobody sees the wrong prices". The second rule is the trap. Googlebot crawls from the United States, so every time it requests an Irish page, it is redirected to the British one. Google never sees a single Irish page, and every Irish hreflang link points to a URL that, for Googlebot, redirects. Tom replaces both rules with a banner. Within a few weeks of the change, the Irish pages appear in the index as the crawler reaches them.
Adapting a page to the visitor is not wrong in itself. The Smart Websites I build adapt what they show to the visitor. The line is this: every edition keeps its own URL, reachable by anyone, including a crawler in the United States.
The language and country selector
Google recommends linking each page to its other language versions so people can switch themselves10. A good selector is small, but it gets a few details right:
- Real links, not a form or a script. A plain link to the other edition's equivalent page can be followed by people and crawlers alike. A dropdown that only works with JavaScript and posts a form is invisible to a crawler.
- To the equivalent page, not the home page. Someone on the Irish dining sets page who switches to the UK wants the British dining sets page.
- Named in words. "United Kingdom (£)" and "Ireland (€)" say more than a flag, and a flag is a country, not a language.
- Remembered, never forced. Storing the choice in a cookie is fine. Using that cookie to override a link the visitor just clicked is not.
Example: Tom's selector. In the footer of every page and in the header on mobile, Tom adds two links: "Shopping from the UK (£)" and "Shopping from Ireland (€)". Each points to the same product or category in the other edition, built from the same data as the hreflang tags. If a product only exists in one edition, the link goes to the closest category instead. A visitor who chooses Ireland once gets a cookie, and the Irish edition opens by default on the home page next time, but any link they click still takes them where it says.
Make the editions genuinely different
Hreflang tells Google which page belongs to which market. It works best when the pages are actually different for good reason, because then Google has no cause to fold them into one. For a shop, the honest differences are rarely the words. They are the currency, the tax, the delivery, the returns and the legal details, and each of them is something the customer needs.
This section is general information about what differs, not legal or tax advice. Check your own case with an accountant or a solicitor.
- Currency and VAT. The standard rate of value added tax (VAT) is 20% in the UK and 23% in Ireland1516. A price shown to an Irish consumer should be in euro and include the tax they will actually pay.
- Customs. Since Brexit, a parcel from Great Britain to Ireland is an import into the EU. The EU's Import One Stop Shop (IOSS) only covers consignments with an intrinsic value of no more than €15017. At Ashby's average order of £410, most orders are above that, so the delivery terms must say how VAT and any duty are handled at the border. My articles on cross border setup and post Brexit expansion mistakes go into the paperwork.
- Legal information. A UK online business must make its name, geographic address, contact details including an email address, and registration details easily and permanently accessible18. That does not change because the customer is in Ireland, but the Irish edition should state it clearly, together with any Irish delivery partner.
- Local signals. Delivery times to Irish towns, an Irish phone line if there is one, Irish Eircode support in the checkout. Google lists local addresses, phone numbers and currency among the signals of a page's intended audience10.
- Words. Irish and British English share their spelling, but not everything. An Irish edition that talks about the footpath outside your door instead of the pavement reads like it was written for Ireland. That is localisation, not translation, and it matters even more between Germany and Austria.
Example: the dining sets page, side by side. Here is what Tom changes on the Irish edition of the dining sets category. The figures for the Irish edition are derived for this example.
| Element | British edition | Irish edition |
|---|---|---|
| Price of the Harlow teak dining set | £1,199 including 20% VAT | €1,449 including 23% VAT, delivered |
| Delivery | 3 to 5 working days, free over £500 | 7 to 10 working days to any Eircode, customs and VAT paid by Ashby |
| Returns | Return to Nottingham, collection booked online | Collection from your door in Ireland, booked online |
| Contact | UK phone number | Irish phone number forwarding to the Nottingham team |
| Copy | "Delivered to your patio" | Same, plus a short note on delivery to the islands |
| Canonical | Itself | Itself |
| Hreflang | en-GB, en-IE, x-default | en-GB, en-IE, x-default |
The text about the furniture is almost the same on both. Everything that decides whether an Irish customer buys is different. That is exactly the case hreflang exists for.
The German pair: Germany and Austria
Everything above applies to German with two different codes, de-DE and de-AT. The pair is if anything more delicate, because Austrian German is not German German with a different flag. Austrians write Jänner for January and buy Paradeiser rather than Tomaten, and a German shop that serves them the German page gets the tax and the legal notice wrong as well. Standard VAT is 19% in Germany and 20% in Austria1920. Each country has its own law on the information a website must show, the Digitale Dienste Gesetz in Germany and the E Commerce Gesetz in Austria2122. And selling across the border inside the EU moves the VAT to the customer's country once a business's cross border sales to consumers pass €10,000 a year, declared through the EU's One Stop Shop23.
My articles on testing Austria as a bridge market, shipping, fulfilment and returns in Germany and how German shoppers pay cover the commercial side.
Example: the same rules, in German. A shop in Hannover adding an Austrian edition would have exactly Tom's structure: the German shop at the root, /at/ for Austria, each page canonical to itself, every page listing de-DE, de-AT and an x-default. The codes change, the folder name changes, and the Austrian edition carries Austrian VAT, Austrian delivery and Austrian words. The mechanics do not change at all.
Bing and the other engines
Google is not the only search engine, and Bing does this differently. Bing has not documented hreflang with anything like Google's detail. The clearest statement on record is from Fabrice Canel of the Bing team, who wrote in September 2020 that at Bing, hreflang is a far weaker signal than the content-language declaration24. The declaration can be sent as an HTTP header or written as a meta tag, and sits alongside the lang attribute on the page. Canel's comment is a social media post, not documentation, and it is almost five years old at the time of writing, but it is the clearest public statement from Bing I could find.
There is a wrinkle. The World Wide Web Consortium (W3C), which writes the web's standards, says to always declare the page language with the lang attribute on the html element, and that meta elements for declaring language are not recommended25. Google ignores both for language detection1. So the practical answer is to do both, consistently:
<!doctype html>
<html lang="en-IE">
<head>
<meta charset="utf-8">
<!-- For Bing: matches the lang attribute exactly. Google ignores it. -->
<meta http-equiv="content-language" content="en-ie">
<link rel="canonical" href="https://ashbyoutdoor.example/ie/garden-furniture/dining-sets" />
<link rel="alternate" hreflang="en-GB" href="https://ashbyoutdoor.example/garden-furniture/dining-sets" />
<link rel="alternate" hreflang="en-IE" href="https://ashbyoutdoor.example/ie/garden-furniture/dining-sets" />
<link rel="alternate" hreflang="x-default" href="https://ashbyoutdoor.example/garden-furniture/dining-sets" />
</head>
Example: Tom's head, complete. The block above is the full head of the Irish dining sets page, apart from the title and description. The lang attribute says the page is English for Ireland, for screen readers, browsers and Bing. The meta tag repeats it for Bing. The canonical tag says the Irish URL is its own main version. The three alternates form the cluster with the British page and the fallback. On the British page, only the first three lines change: lang="en-GB", content="en-gb" and the canonical to the British URL. The three alternates are identical on both pages.
Checking your work
Since the International Targeting report went in 2022, Search Console has no report of hreflang errors13. You check the annotations yourself, with a site crawler that reads hreflang (most commercial crawlers do), and you check Google's view of individual pages with the URL Inspection tool, which shows the canonical you declared next to the canonical Google selected26. If those two differ for an Irish page, the cluster has a problem. For the reports that matter in Search Console overall, see the Search Console chapter later in this series.
The checking itself follows one loop for every pair of pages.
Two numbers help you keep track. The first tells you how much annotation a site carries, so you know what you are checking. Each page in a cluster lists every edition plus the fallback:
where is the total number of hreflang link elements on the site, is the number of pages that belong to a cluster, is the number of editions per cluster, and the is the x-default line. It is a simple product of two counts, explained in Foundations: ratios and rates.
The second tells you how healthy the clusters are:
where is the return link rate, is the number of clusters in which every link is confirmed in both directions, and is the number of clusters you declared. A rate of means every declared cluster works. Ratios like this are explained from scratch in Foundations: ratios and rates.
Example: Tom's first full check. Of Ashby's roughly 2,600 useful pages, 2,450 have an Irish twin. The other 150 stay British only: assembly service pages for the East Midlands and a few oversized items that Tom does not ship to Ireland. Those 150 pages get no hreflang at all, because there is nothing to point to.
That gives 2,450 clusters with editions each, so pages, and
where is the number of link elements in total. Nobody checks 14,700 lines by hand, which is why the crawler exists.
The crawl confirms 2,310 of the 2,450 clusters. The other 140 fail: 96 are the renamed products whose Irish pages still point to redirected British URLs, and 44 are Irish category pages whose hreflang points at a filtered URL instead of the canonical category. So
where confirmed clusters, declared clusters, and is rounded to three places, so 94.3%. That sounds good, but it means 140 clusters where Irish searchers may still see the British page. Tom's developer fixes both causes at the source (one data table for both editions, hreflang only on canonical URLs) rather than patching 140 pages, and the next crawl confirms all 2,450.
The order of work
If you are adding a second market, or repairing one, here is the order I would follow. Each step depends on the one before it.
- Decide the structure. Subdirectory for most small and medium businesses, and keep the existing edition where it is.
- Make each edition reachable. No redirects by IP address or browser language. A banner and a selector instead.
- Make each edition canonical to itself. Check the template, not one page.
- Make the editions genuinely local. Currency, tax, delivery, returns, contact, legal information, words.
- Generate hreflang from one source of truth. The same data that builds the pages builds the annotations, with valid codes (
en-GB,en-IE,de-DE,de-AT) and anx-default. - Pick one method per file type. HTML head for pages, HTTP header for PDFs, or the sitemap, but not all three.
- Set
langand, for Bing, thecontent-languagemeta tag, matching each edition. - Crawl and check. Return links, self references, status codes, canonicals. Then URL Inspection for a sample of pages in each edition.
- Check again after every bulk change. Product imports, renames and template changes are when clusters break.
If you would like help with this on an online shop, I build shops on Solidus and run search engine optimisation (SEO) for clients, and you keep the code, the accounts and the data. You can see what it costs before we talk.
My view
Hreflang has a reputation for being difficult. It is not, really. The rules fit on one page, and Google has documented them clearly for more than a decade. What makes it fail is that it is invisible: nothing on screen changes when it breaks, browsers ignore it, and since 2022 Search Console does not even report it. So it breaks quietly, usually in the most boring way possible, through a product import or a template change months after launch.
That leads me to three opinions, labelled as mine. First, generate the annotations from the same data that builds the pages, never from a spreadsheet or a plugin that keeps its own copy. Second, put more effort into making the editions genuinely local than into the tags: an Irish edition with real euro prices, Irish delivery and an honest returns process gives Google every reason to treat it as its own page, and gives the customer every reason to buy. Third, never let a location redirect decide what a crawler can see. A banner costs nothing and hides nothing.
What I do not know, and nobody outside Google knows, is exactly how strongly Google weighs hreflang against its own canonical choice for near identical pages in every case. Mueller's description of URL swapping on a canonical is the best public account. Build so that it does not matter: local pages, self canonical, valid clusters.
Conclusion
Showing the Irish their Irish page, and Austrians their Austrian one, comes down to five things. Valid codes, with GB and never UK. Return links and self references on every page, generated from one source. Canonical tags that point to each edition itself. No redirects by location, so Googlebot can reach every edition from the United States. And editions that differ where it matters to the customer: currency, tax, delivery, returns and the law.
Tom's Irish edition did not need new content, a new domain or a new team. It needed two corrected codes, one changed canonical line, a banner in place of a plugin and one data table instead of two. The next chapter in this series looks at JavaScript and how frameworks and single page apps get indexed, which is where Tom's new product filter is about to cause trouble of its own.
