Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Visitor sees wrong language version: fix geo and browser redirects

PRF-348High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Many multilingual sites redirect visitors automatically. The decision usually rests on one of two signals. The first is geolocation: the country your visitor's IP address appears to come from. The second is the Accept-Language header: a list of preferred languages that the browser sends with every request.

Both signals are weak. A Spanish speaker on holiday in Germany looks German by IP. A Swiss visitor may need German, French or Italian. A browser set to English may belong to someone who reads Portuguese. A VPN, a company network or a mobile carrier can place someone in the wrong country entirely. When the redirect trusts the signal too much, the visitor lands on a page they cannot read.

Why it costs you leads or sales

A visitor who cannot read the page leaves. If they clicked an ad written in French and land on an English page, the message they were promised is gone. Your ad spend is paid, the click is counted, and no lead follows.

It can also break tracking and attribution. Redirects that add or rewrite URLs may drop parameters such as gclid and UTM tags, so the sale is credited to the wrong source or to none. Search engines may also struggle to index language versions that visitors and crawlers cannot reach without being redirected.

How a wrong redirect loses the lead
  1. Ad clickLink points to the French page
  2. RedirectSite reads IP or browser and sends them to the wrong language
  3. Landing pageVisitor cannot read the offer
  4. Form or checkoutNever reached

The visitor clicks a French ad but is redirected by IP to another language version.

Form submissions by landing languageExample numbers
Form submissions by landing language (example)Correct language: 40 submissions per 1,000 visits; Wrong language: 8 submissions per 1,000 visits01531408Correct languageWrong languagesubmissions per 1,000 visits

Example: illustrative numbers showing how landing on the wrong language can cut conversions.

How to check if your site has it

Test the redirect with different signals, one at a time. Do each test in a private window so saved cookies do not interfere.

Test your language redirects
  1. Change the browser language

    In Chrome, open Settings, then Languages, and move a different language to the top. Open your homepage in a private window and note where you land.

  2. Test from another country

    Use a VPN or a trusted geo-testing tool to browse from a different country. Check you are not sent somewhere unexpected.

  3. Open a language-specific URL directly

    Paste the URL of each language version, such as /fr/ or /de/, into a fresh window. You should stay on that page and not be redirected.

  4. Click your real ad and email links

    Follow each live campaign link. Confirm the language matches the ad and that gclid and UTM parameters survive in the address bar.

  5. Use the language switcher, then reload

    Pick a language manually, then reload and revisit the homepage. The site should remember your choice.

  6. Inspect the redirect

    Run the command below to see the status code and the Location header.

See where a request is redirectedbash
curl -sI -H "Accept-Language: fr-FR,fr;q=0.9" https://example.com/ | grep -iE "^(HTTP|location|vary|set-cookie)"

How to fix it

The safest approach is to stop forcing visitors. Show the page they asked for and offer a banner such as "This page is also available in French". If you must redirect, do it only on the first visit to the bare homepage.

Fix the redirect logic
  1. Never redirect direct language URLs

    If someone requests /fr/ or /de/, serve it. Only consider redirecting the root URL.

  2. Prefer the browser language over IP

    Accept-Language reflects what a person reads. IP reflects where they are. Use IP only for things like currency or shipping.

  3. Remember the visitor's choice

    When someone uses the language switcher, store it in a cookie and skip all automatic redirects afterwards.

  4. Match on the base language

    Treat en-GB, en-US and en as English. Match the first part of the code, and fall back to your default language when nothing matches.

  5. Use a temporary redirect or a banner

    Use 302, not 301, and add a Vary: Accept-Language header so caches do not serve one visitor's redirect to another.

  6. Keep tracking parameters

    Make sure the redirect copies the full query string, including gclid and UTM tags.

Where to change the setting
  1. Check your multilingual plugin

    In WPML, open WPML, then Languages, and review the browser language redirect option. In Polylang, open Languages, then Settings, and review 'Detect browser language'. Turn it off or limit it to the homepage.

  2. Check for second redirect sources

    Look at any redirect or geo plugin and your caching plugin, as they may add their own rules.

Safer client-side language suggestionjavascript
(function () {
  var supported = ['en', 'fr', 'de'];
  var saved = document.cookie.match(/(?:^|; )lang=([^;]+)/);
  // Only act on the bare homepage, and never override a saved choice
  if (saved || location.pathname !== '/') return;
  var pref = (navigator.language || 'en').slice(0, 2).toLowerCase();
  if (supported.indexOf(pref) > -1 && pref !== 'en') {
    // Keep the query string so gclid and UTMs survive
    location.replace('/' + pref + '/' + location.search + location.hash);
  }
})();
Redirect behaviour

Forced redirect

  • Every visit is redirected by IP
  • Direct /fr/ links get overridden
  • Language switcher choice is forgotten
  • 301 redirects are cached
  • UTM tags are dropped

Respectful redirect

  • Only the bare homepage can redirect
  • Direct language URLs are always served
  • A cookie remembers the visitor's choice
  • 302 plus Vary: Accept-Language
  • Query string is preserved

How to confirm it's fixed

Confirmation checklist
  • Each language URL opens without being redirected
  • A browser set to French lands on the French homepage on a first visit only
  • Choosing a language in the switcher sticks after a reload
  • A visitor from another country with a matching browser language is not moved
  • Ad and email links keep gclid and UTM parameters
  • The curl check shows a 302 and no redirect loop

How to prevent it happening again

Language rules tend to break when someone updates a plugin, adds a market, changes a CDN rule or installs a new app. Keep a short written list of every place a redirect can happen: the CMS plugin, the server, the CDN and any scripts. Re-run the tests above after each change and before launching a campaign in a new language.

Habits that help
  • Run the browser-language and VPN tests after every plugin, theme or CDN change
  • Test each live ad link before a campaign goes out
  • Document which layer owns language redirects so two layers do not fight
  • Review the list of supported languages when you add a market

How FunnelGuard handles this

FunnelGuard does not check for wrong language or geo redirects yet. A language and region variant check is a possible future addition, but today it is not part of the product.

What FunnelGuard does do is run your real customer journeys on a schedule from the EU or the US, such as lead forms, checkouts and booking buttons, and check each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a redirect broke one of those journeys, for example by sending the robot to a page without the form, the failed step would show up. It would not tell you that the language was wrong.

Frequently asked questions

Questions people ask

Why does my website show the wrong language to visitors?

The site is probably guessing from the visitor's IP address or browser language and guessing wrong. Travellers, VPN users and people whose browser language differs from the language they read are common cases. Another cause is a rule that ignores the language the visitor already chose.

Should I redirect visitors by IP address or by browser language?

Browser language is the better signal for choosing a language, because it reflects what the person reads. IP address suits country-based things such as currency or shipping. Even then, suggest the change with a banner and let the visitor decide.

How do I stop my site automatically redirecting to another language?

Turn off the browser or geo redirect option in your multilingual plugin or app, then check for custom scripts and server or CDN rules. In WPML or Polylang, look for the browser language detection setting. Afterwards, retest in a private window with a different browser language.

Do automatic language redirects hurt SEO?

They can. Search engine crawlers often request pages without a language preference, so forced redirects may stop them reaching some versions. Serve each language at its own URL, link them with hreflang and avoid forced redirects on those URLs.

Why does my language redirect drop my UTM parameters or gclid?

The redirect rule probably sends visitors to a clean URL and discards the query string. Change the rule so it appends the original query string to the new address, then click a real campaign link to confirm the parameters remain.

How do I test my website's language redirect from another country?

Use a VPN or a geo-testing tool and open the site in a private window. Also change your browser's preferred language and use curl with an Accept-Language header to see the redirect response. Test each signal separately.

Does FunnelGuard detect wrong language redirects?

No. FunnelGuard does not check language or geo variants yet; this is a possible future check. It does run your real journeys such as forms and checkouts on a schedule, so a redirect that breaks one of those journeys would show as a failed step.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: language / country variants (Stage 27): locale_served: the page comes back in the visitor's language.

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.