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.
<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.
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
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 containinghreflang="x-default".Check the sitemap
If you use hreflang in your XML sitemap, open it and look for
xhtml:linkentries withhreflang="x-default"inside eachurlblock.Check HTTP headers (non-HTML files)
For PDFs and other files, hreflang can be sent in a
Linkheader. Runcurl -I https://example.com/file.pdfand look forhreflang="x-default".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.
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.
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.
Clear caches
Purge page and CDN caches, then view source to confirm the tag appears.
Use Shopify Markets
Shopify adds hreflang automatically for languages and markets set up in Settings > Markets and Settings > Languages. Check the page source to see whether x-default is included in your theme output.
Edit the theme if missing
In Online Store > Themes > Edit code, open layout/theme.liquid and add an x-default link inside the head, pointing to your chosen fallback URL.
Avoid injecting hreflang with GTM
Tags added by JavaScript after page load may be read less reliably by search engines. Add hreflang in the HTML, sitemap or HTTP header instead.
Open localization settings
If you use Webflow Localization, it outputs hreflang tags for your locales. Check the source to see whether x-default is present.
Add it manually if needed
In Page settings > Custom code > Inside head tag, paste the x-default link for that page. Repeat for each page in the set.
Add it in the page head
Open the page's settings and find the custom code or tracking code area for the head. Paste the full hreflang set including x-default. Do it for every language version.
Use Wix Multilingual
Wix Multilingual generates hreflang for your languages. Check the source to see whether x-default is output.
Add custom tags if needed
In the page's SEO settings, advanced SEO tags, you can add custom link tags to a page. Add the x-default link there.
Add code injection
Squarespace has limited built-in multilingual support. Use Page settings > Advanced > Page Header Code Injection to add the hreflang set, including x-default, on each page.
Choose one method
Use head link tags, XML sitemap entries or HTTP Link headers. Do not mix methods with different values.
Generate the set from one list
Keep a single map of language to URL in your code and output the full set, with x-default, on every page template.
<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>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
- 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
- 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.
Related issues
- SEO-265hreflang missing on multi-language sitesFix guide
- SEO-266hreflang without return links (not reciprocal)Fix guide
- SEO-267hreflang uses wrong language or region codes (en-UK)Fix guide
- SEO-268hreflang points to redirecting, 404 or noindex pagesFix guide
- SEO-269hreflang points to non-canonical URLsFix guide
- SEO-271hreflang in both sitemap and head with conflictsFix guide