Skip to content
FunnelGuard

Fix guide by FunnelsGuard

x-default hreflang missing: how to find and fix it

SEO-270Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Hreflang is a set of tags that tells search engines which version of a page suits which language or country. Each version is listed with a code such as en-gb, de or fr-ca.

x-default is one extra value in that set. It says: "If none of the other versions fit this visitor, show this one." It is usually your main-language page, a global English page, or a page that lets people pick a country or language.

This issue means your hreflang tags list languages but have no x-default entry. Google treats x-default as optional, so nothing is technically invalid. You just leave the fallback choice to the search engine.

A hreflang set with x-default (in the <head> of every version)html
<link rel="alternate" hreflang="en-us" href="https://example.com/us/" />
<link rel="alternate" hreflang="en-gb" href="https://example.com/uk/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/" />

Why it costs you leads or sales

The impact is usually small, which is why this issue is rated low. It matters most when you sell in several markets and get search traffic from countries you do not list.

Picture a visitor in Brazil searching for your product. You have English, German and French versions only. With no x-default, the search engine guesses. The visitor may see the German page, bounce, and never reach your form or checkout.

Where unlisted-region visitors might landExample numbers
Where unlisted-region visitors might land (example)Random language version: 22 % of visitors who stay; x-default fallback page: 38 % of visitors who stay015292238Random language versi…x-default fallback pa…% of visitors who stay

Example: illustrative numbers only. Visitors from unlisted regions tend to stay more often when they land on a sensible fallback page.

How to check if your site has it

Check for x-default in three ways
  1. View the page source

    Open a page that has language versions, right-click and choose View page source. Search (Ctrl+F or Cmd+F) for hreflang. Look for a line containing hreflang="x-default".

  2. Check the sitemap

    If you use hreflang in your XML sitemap, open it and look for xhtml:link entries with hreflang="x-default" inside each url block.

  3. Check HTTP headers (non-HTML files)

    For PDFs and other files, hreflang can be sent in a Link header. Run curl -I https://example.com/file.pdf and look for hreflang="x-default".

  4. Crawl the whole site

    A crawler such as Screaming Frog has an hreflang report with a filter for pages missing x-default. Use it on larger sites instead of checking by hand.

How to fix it

First decide which URL is your fallback. Pick one page per set: a global homepage, your main-language version, or a country selector page. Then add the same x-default line to every version in the set.

Add x-default by platform
  1. Check your multilingual plugin

    Plugins such as WPML, Polylang and TranslatePress handle hreflang. Open the plugin's language settings and look for an x-default or default-language option. Behaviour differs by plugin and version, so check its documentation.

  2. If the plugin cannot add it

    Use an SEO plugin that supports it, or add the line through a small code snippet in your child theme's functions.php hooked to wp_head.

  3. Clear caches

    Purge page and CDN caches, then view source to confirm the tag appears.

XML sitemap versionhtml
<url>
  <loc>https://example.com/uk/</loc>
  <xhtml:link rel="alternate" hreflang="en-gb" href="https://example.com/uk/" />
  <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/" />
  <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/" />
</url>
Hreflang set before and after

No x-default

  • Only en-us, en-gb and de are listed
  • Visitors from other countries get a version chosen by the search engine
  • No clear fallback page

With x-default

  • Same language versions plus one x-default line
  • Unlisted regions are pointed to your chosen fallback
  • Every version lists the same full set

How to confirm it's fixed

Confirmation checks
  • View source on each language version and find the x-default line
  • The x-default URL is the same on every page in the set
  • The x-default URL returns 200, is indexable and is its own canonical
  • Every version still lists all others, including itself
  • A crawler's hreflang report shows no pages missing x-default
  • Cached or CDN copies of the page show the new tag

Search engines need to recrawl your pages before they use the change, so effects can take days or weeks to show.

How to prevent it happening again

Habits that keep it in place
  • Generate hreflang from one central list, not by hand per page
  • Add x-default to your launch checklist for every new language or market
  • Re-crawl the site after theme, plugin or migration changes
  • Keep an eye on the fallback page so it is never redirected, noindexed or removed
  • Document which URL is your x-default and why

How FunnelGuard handles this

FunnelGuard does not check for a missing x-default yet. It is a possible future check, not a current feature.

What FunnelGuard does today is run your real customer journeys, such as lead forms, checkouts and booking buttons, on a schedule. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. That helps you spot a broken form or checkout on any language version, but it does not read hreflang tags.

To watch for x-default yourself, run a crawler with an hreflang report (for example Screaming Frog) after each release, and check the International Targeting or page indexing reports in Google Search Console. A free read-only website audit from FunnelGuard is also available, but do not rely on it for hreflang.

Questions people ask

What is x-default in hreflang?

x-default is a special hreflang value that marks the fallback page for users whose language or region does not match any of your listed versions. It is often a global homepage, a language selector or your main-language page. It is written as hreflang="x-default".

Is x-default required for hreflang?

No. Google treats x-default as optional and your other hreflang tags still work without it. It is recommended on multi-language sites because it gives a clear fallback for visitors you have not planned for.

Why does Google show the wrong language version to some visitors?

Common causes are missing or non-reciprocal hreflang tags, wrong language codes, or no fallback for unlisted regions. Adding x-default helps with the last case, but check the rest of your hreflang set too.

Which page should I use as x-default?

Use the page that best serves people you did not plan for. That is usually your global or main-language homepage, or a country and language selector page. It must be live, indexable and its own canonical.

How do I add x-default hreflang in WordPress?

Check whether your multilingual plugin (WPML, Polylang or TranslatePress) outputs it, then view the page source to confirm. If not, add the link through a supported SEO plugin or a snippet hooked to wp_head. Purge caches afterwards.

Can x-default point to a different language from my other pages?

Yes. It can point to a page that is also listed under a language code, such as your English version, or to a separate selector page. The same URL can appear twice in the set, once with its language code and once as x-default.

Does a missing x-default hurt my rankings?

Not directly. It does not cause a penalty. The risk is that visitors from unlisted regions see a less suitable version, which can lower engagement and conversions from those markets.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.