If you serve more than one language or country, hreflang is how you stop Google from showing the Spanish page to English searchers (and vice-versa). Done wrong, it quietly scrambles which version ranks where.
hreflang is a set of link tags (or sitemap/HTTP-header entries) that tell search engines each URL's language and optional region, and which alternate versions exist. Google uses them to serve the right version to the right user.
The two rules people miss: every page must include a self-referencing hreflang, and the set should include an x-default for users who don't match any listed language.
Why it matters
Without hreflang, Google may show the wrong-language page in results (hurting bounce and conversions) or treat your translated pages as duplicates. With it, each audience lands on the version meant for them — a direct lift to relevance and user experience in international markets.
How to tell if this is you
Abby flags “hreflang” when a site appears to have multiple language versions but is missing hreflang annotations, self-references, or an x-default. The fix is a complete, reciprocal set of tags on every version.
Not sure if your site has this?
Run Abby's free scan — it checks this and 25 other on-page, technical, and structured-data signals in about 60 seconds, no signup.
Add hreflang tags for each language version:
<link rel="alternate" hreflang="en" href="https://example.com/en/">
<link rel="alternate" hreflang="es" href="https://example.com/es/">
Include a self-referencing hreflang and an x-default.
Before
<!-- English and Spanish versions exist, but no hreflang linking them -->
Use WPML or Polylang multilingual plugins — they handle hreflang tags automatically.
Shopify
Use Shopify's built-in multilingual features or an app like Langify or Weglot. They manage hreflang tags.
When this doesn’t apply
Only applicable if you serve the same content in multiple languages or for multiple regions. Single-locale sites should NOT add hreflang — it just creates maintenance burden and can confuse Google with self-references.
Fix every issue at once.
Abby's free scan finds which of 26 checks your site fails. The $8.99 fix guide turns each one into a copy-ready fix for your exact pages — prioritized, with code — or bundle it with a security fix guide for $19.99.
x-default is the fallback version shown to users whose language/region doesn't match any of your specified hreflang values. It usually points to your main or language-selector page.
Do hreflang tags have to be reciprocal?
Yes. If page A lists page B as its Spanish alternate, page B must list page A back. Missing return tags are the most common hreflang error and cause Google to ignore the annotations.
Do I need hreflang if I only have one language?
No. hreflang only applies when you have multiple language or regional versions of the same content. A single-language site should not use it.