Hreflang for Ireland, the UK, 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). Ireland is IE, the United Kingdom is GB, never UK, and Northern Ireland has no code of its own.
- 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 Ireland and the UK, 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 Kilkenny adds a UK edition properly, with every line of code.
The question behind this chapter
You sell in two countries that share a language. A customer in Belfast searches for a garden dining set and lands on your Irish page: prices in euro, Irish VAT, delivery times for Waterford, a returns address in Kilkenny. Most people leave. The ones who stay ring you to ask whether you deliver north of the border at all, or to Glasgow.
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 awkward 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 (Ireland, the UK, 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 Barrow Outdoor, an online shop for garden and outdoor furniture in Kilkenny (barrowoutdoor.example), owned by Aoife. 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 €470. This summer Aoife starts selling to the UK, both Northern Ireland and Great Britain. Her plan is simple: copy the Irish pages, swap euro for pounds, 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 Aoife 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 Aoife would gain. Barrow's best category, garden dining sets, ranks well on Google in Ireland. Without hreflang, a searcher in Belfast sees the Irish 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 UK edition at barrowoutdoor.example/uk/. Aoife does not have to build a second set of rankings from scratch in the UK. She has to make sure Google understands that the UK page is the sister of the Irish 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. Barrow's dining sets page has two editions, Irish and UK, and a fallback. A searcher in Galway with an English browser matches the Irish code exactly and sees the Irish page. A searcher in Belfast matches the UK code and sees the UK page, because Northern Ireland is part of the United Kingdom and shares its country code. A searcher in Amsterdam whose browser is set to English matches neither country. Because Aoife has set a fallback (the x-default page, explained below), Google shows her that one. If the UK page had no return link to the Irish page, all three would see whichever URL Google picked as canonical, most likely the Irish 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:
IEfor Ireland,GBfor the United Kingdom,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-ieanden-IEmean 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, which covers Northern Ireland as well as Great Britain. It does not list UK as a region at all4. That is why the most common error in UK 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-IE | English for Ireland | Yes | Language en, country IE |
en-GB | English for the United Kingdom, Northern Ireland included | Yes | Language en, country GB |
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 |
ie | Meant for Ireland | No | Read as the language Interlingue, and a country alone is not allowed |
en-uk | Meant for the UK | No | The country code is GB, and UK is not a valid region code |
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 |
en-EU | Meant for the EU | No | EU is not an ISO 3166 1 alpha 2 country code, and Google supports only those |
en_IE | Meant for Ireland | No | An underscore, where the format needs a hyphen |
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. If you do publish pages in Irish, ga-IE is exactly right for them.
Example: the developer's first attempt. The developer who looks after Barrow Outdoor adds hreflang in an afternoon. He writes ie for the Irish pages and en-uk for the UK ones, because that is how everyone in the office talks about the two shops. Both values are invalid. ie is read as a language code, and en-uk names a region that does not exist in the registry. Google ignores both, and nothing changes in the results. Nothing in the page warns anyone, either: the site looks grand in a browser, because browsers do not read hreflang. The fix is two lines in the template, en-IE and en-GB.
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 /uk/ is wrong1.
<!-- On BOTH the Irish and the UK page: the same three lines -->
<link rel="alternate" hreflang="en-IE" href="https://barrowoutdoor.example/garden-furniture/dining-sets" />
<link rel="alternate" hreflang="en-GB" href="https://barrowoutdoor.example/uk/garden-furniture/dining-sets" />
<link rel="alternate" hreflang="x-default" href="https://barrowoutdoor.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://barrowoutdoor.example/guides/teak-care.pdf>; rel="alternate"; hreflang="en-IE",
<https://barrowoutdoor.example/uk/guides/teak-care.pdf>; rel="alternate"; hreflang="en-GB",
<https://barrowoutdoor.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://barrowoutdoor.example/garden-furniture/dining-sets</loc>
<xhtml:link rel="alternate" hreflang="en-IE" href="https://barrowoutdoor.example/garden-furniture/dining-sets"/>
<xhtml:link rel="alternate" hreflang="en-GB" href="https://barrowoutdoor.example/uk/garden-furniture/dining-sets"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://barrowoutdoor.example/garden-furniture/dining-sets"/>
</url>
<url>
<loc>https://barrowoutdoor.example/uk/garden-furniture/dining-sets</loc>
<xhtml:link rel="alternate" hreflang="en-IE" href="https://barrowoutdoor.example/garden-furniture/dining-sets"/>
<xhtml:link rel="alternate" hreflang="en-GB" href="https://barrowoutdoor.example/uk/garden-furniture/dining-sets"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://barrowoutdoor.example/garden-furniture/dining-sets"/>
</url>
</urlset>
Example: which method Aoife picks, and why. Barrow has about 2,600 useful pages. The template that renders every product and category page already knows each page's UK 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. Aoife 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 "UK version" of theirs. A return link proves that both sides agree.
Two further rules come with it1:
- Every page lists itself. The Irish page names the Irish URL as
en-IEas well as the UK 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, Aoife renames 96 products ("Harlow six seat dining set" becomes "Harlow teak dining set, six seats") and her platform gives the Irish pages new URLs, with 301 redirects from the old ones. The Irish pages now point to their UK twins correctly. But the UK pages were generated from an export taken before the rename, so they still point to the old Irish URLs, which redirect. For Google, each of those 96 UK pages names an Irish sister that does not exist as a final page, and each Irish page names a UK 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. An Irish and a UK 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 UK page is canonical to the UK URL, never to the Irish 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. The developer, worried about "duplicate content", sets every UK page's canonical tag to the Irish page. The reasoning sounds careful. The effect is the opposite of what Aoife wants: the UK page now tells Google "I am a copy, index the Irish one instead", while its hreflang says "I am the UK edition". Google cannot obey both, and the canonical tag wins: the UK pages drop out and shoppers in Belfast and Glasgow keep seeing euro. Changing one line per template, so each page is canonical to itself, restores the cluster.
The same applies to filter pages. Barrow'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: Barrow's fallback. Barrow Outdoor is an Irish shop that now also sells to the UK. A visitor from the Netherlands or France can order from the Irish edition easily, because it already prices in euro inside the EU, and it is the more complete edition, with the larger range and the full guides. Aoife sets x-default to the Irish URL in every cluster, as in the code above. That gives every searcher outside Ireland and the UK 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) | barrowoutdoor.co.uk | 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 | uk.barrowoutdoor.example | Easy to set up, servers in different places possible, easy to separate | Users may not know whether uk means a language or a country |
| Subdirectory on a general domain | barrowoutdoor.example/uk/ | 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 | barrowoutdoor.example/?loc=uk | 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 Irish URL into a new /ie/ 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 Aoife puts the UK. Aoife considers barrowoutdoor.co.uk. It would look local, but it starts with no history, needs its own links and doubles the setup work. She keeps the Irish shop exactly where it is, at the root, and adds the UK edition under /uk/. Note the difference between the path and the code: the folder can be called anything (/uk/, /gb/), because it is just a URL. The hreflang value must still be en-GB. 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 banner the visitor can close. "Looks like you are in the UK. Shop in pounds on the UK site?" with a link. The visitor decides, Googlebot crawls both editions, and nobody is trapped.
Example: the plugin that hid the UK. Aoife installs a geolocation plugin with two rules: visitors in the UK go to /uk/, and visitors outside the UK who open a /uk/ page go back to the Irish page, "so nobody sees the wrong prices". The second rule is the trap. Googlebot crawls from the United States, so every time it requests a UK page, it is redirected to the Irish one. Google never sees a single UK page, and every UK hreflang link points to a URL that, for Googlebot, redirects. Aoife replaces both rules with a banner. Within a few weeks of the change, the UK 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 UK dining sets page who switches to Ireland wants the Irish dining sets page.
- Named in words. "Ireland (€)" and "United Kingdom (£)" 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: Aoife's selector. In the footer of every page and in the header on mobile, Aoife adds two links: "Shopping from Ireland (€)" and "Shopping from the UK (£)". 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 the UK once gets a cookie, and the UK 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 23% in Ireland and 20% in the UK1516. A price shown to a UK consumer should be in pounds and include the tax they will actually pay.
- Great Britain. Since Brexit, a parcel from Ireland to Great Britain leaves the EU. For consignments of £135 or less sold directly to customers, the seller charges UK VAT at the point of sale. Above £135, normal import VAT and customs rules apply at the border17. At Barrow's average order of €470, most orders are above that, so the delivery terms must say how VAT and any duty are handled.
- Northern Ireland. EU VAT rules continue to apply to goods in Northern Ireland18, so a delivery from Kilkenny to Newry is not the same case as one to Glasgow, even though both sit in the
en-GBedition. Hreflang cannot split the UK into two, because Northern Ireland has no code of its own. The UK edition has to explain both routes on the page. - Legal information. An Irish online business must make its name, geographic address, contact details including an email address, and registration details easily, directly and permanently accessible19. That does not change because the customer is in the UK, but the UK edition should state it clearly, together with any UK delivery partner.
- Local signals. Delivery times to UK towns, a UK phone line if there is one, UK address formats 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. A UK edition that talks about the pavement outside your door instead of the footpath reads like it was written for the UK. 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 Aoife changes on the UK edition of the dining sets category. The figures for the UK edition are derived for this example.
| Element | Irish edition | UK edition |
|---|---|---|
| Price of the Harlow teak dining set | €1,449 including 23% VAT | £1,199 including 20% VAT, delivered |
| Delivery | 3 to 5 working days to any Eircode, free over €600 | Northern Ireland 4 to 6 working days, Great Britain 7 to 10, customs and VAT paid by Barrow |
| Returns | Collection from your door, booked online | Collection from your door anywhere in the UK, booked online |
| Contact | Irish phone number | UK phone number forwarding to the Kilkenny team |
| Copy | "Delivered to your patio" | Same, plus a note on delivery to the Scottish islands |
| Canonical | Itself | Itself |
| Hreflang | en-IE, en-GB, x-default | en-IE, en-GB, x-default |
The text about the furniture is almost the same on both. Everything that decides whether a UK 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 Austria2021. 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 Austria2223. 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 Shop24. The same EU rule applies to an Irish shop selling to German or Austrian consumers.
My articles on shipping, fulfilment and returns in Germany and how German shoppers pay cover the commercial side, and cross border PPC from an Irish base covers the paid side.
Example: the same rules, in German. A shop in Hannover adding an Austrian edition would have exactly Aoife'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 declaration25. 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 recommended26. Google ignores both for language detection1. So the practical answer is to do both, consistently:
<!doctype html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<!-- For Bing: matches the lang attribute exactly. Google ignores it. -->
<meta http-equiv="content-language" content="en-gb">
<link rel="canonical" href="https://barrowoutdoor.example/uk/garden-furniture/dining-sets" />
<link rel="alternate" hreflang="en-IE" href="https://barrowoutdoor.example/garden-furniture/dining-sets" />
<link rel="alternate" hreflang="en-GB" href="https://barrowoutdoor.example/uk/garden-furniture/dining-sets" />
<link rel="alternate" hreflang="x-default" href="https://barrowoutdoor.example/garden-furniture/dining-sets" />
</head>
Example: Aoife's head, complete. The block above is the full head of the UK dining sets page, apart from the title and description. The lang attribute says the page is English for the United Kingdom, for screen readers, browsers and Bing. The meta tag repeats it for Bing. The canonical tag says the UK URL is its own main version. The three alternates form the cluster with the Irish page and the fallback. On the Irish page, only the first three lines change: lang="en-IE", content="en-ie" and the canonical to the Irish 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 selected27. If those two differ for a UK 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: Aoife's first full check. Of Barrow's roughly 2,600 useful pages, 2,450 have a UK twin. The other 150 stay Irish only: assembly service pages for the South East and a few oversized items that Aoife does not ship to the UK. 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 UK pages still point to redirected Irish URLs, and 44 are UK 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 grand, but it means 140 clusters where UK searchers may still see the Irish page. The 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-IE,en-GB,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: a UK edition with real sterling prices, honest delivery terms for both Northern Ireland and Great Britain and a clear 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, shoppers in Belfast and Glasgow the UK one, and Austrians their Austrian one, comes down to five things. Valid codes, with IE and GB, and never UK or NI. 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.
Barrow's UK 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 Aoife's new product filter is about to cause trouble of its own.
