Technical SEO

How to add hreflang tags correctly

Add a link rel="alternate" hreflang element for every language or regional variant, including a self-reference, on every page in the cluster — and add x-default for the fallback. Every page must list every other, or the cluster is ignored.

Written by Anas Bin Masud 7 steps About 2 hours 264 words

Before you start

  • Genuinely distinct regional or language versions
  • Access to the page templates

The steps

  1. Step 1: Confirm you actually need it

    Only for genuinely different language or regional versions. Near-identical pages differing by a swapped city name are doorway pages, not an hreflang cluster.

  2. Step 2: List every variant

    With its language code, and region code where the region genuinely differs.

  3. Step 3: Add the tags to every page

    Each page lists every variant including itself. Omitting the self-reference invalidates the cluster.

  4. Step 4: Add x-default

    Pointing at the fallback for anyone whose language and region you do not target.

  5. Step 5: Use absolute canonical URLs

    Matching the canonical tag on each page exactly. A mismatch breaks the association.

  6. Step 6: Check reciprocity

    If A points at B, B must point back at A. One-directional references are discarded.

  7. Step 7: Validate after deploying

    Search Console’s international targeting report reports errors in the live implementation.

The most common reason it does nothing

Non-reciprocal tags. Adding hreflang to a new regional page without updating the existing ones to point back means the cluster is not recognised at all, and the effort produces no effect whatsoever.

English-only sites usually do not need it

If your UK and Canadian pages differ only in currency and a few examples, hreflang is unlikely to help and may create duplicate-content confusion. It earns its place when the content genuinely differs by market — different prices, terms, regulations or language.

The background behind this

hreflang, and the honest answer that most sites do not need it covers the reasoning in about 2 minutes — free, ungated, written from client work.

Who wrote this

Anas Bin Masud builds e-commerce sites and does technical SEO for businesses in the UK, Canada, Ireland and Pakistan. These procedures are the ones I run on client work, written down rather than invented — including the ones where the honest answer is that the fix is not available on your current hosting.

Related procedures

All 64 how-to guides →

Want this done rather than done yourself?

Send the brief and you get a reply within one business day — either questions, or a scoping call. If your project is not something I should take on, I will say so then.

Response
Replies within 1 business day
Hours
Mon–Fri, 09:00–18:00 PKT — overlaps 05:00–14:00 UK, 00:00–09:00 US Eastern
Booking
Booking projects from October 2026
WhatsApp — opens a chat with +92 346 5348466 in a new tab