Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Language or geo redirect dropping gclid and UTMs: how to fix it

TRK-335High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Many multilingual sites redirect visitors automatically. The rule may read the browser language (Accept-Language header) or guess the country from the IP address. It then sends the visitor from example.com/ to example.com/de/ or example.de.

A click ID is a parameter an ad platform adds to your link, such as gclid (Google Ads), fbclid (Meta) or msclkid (Bing). UTMs are tags you add yourself, like utm_source. If the redirect rule builds the new URL from the path only, all of these vanish.

Why it costs you leads or sales

The redirect happens before your analytics and ad tags read the URL. The click ID never reaches the page, so it cannot be stored or sent with the conversion. Google Ads and Meta cannot match the sale to the ad, and smart bidding learns from less data.

Where the click ID disappears
  1. Ad click/?gclid=abc&utm_source=google
  2. Geo redirect301 to /de/ without query string
  3. Landing pageNo gclid or UTMs in URL
  4. ConversionReported as direct or unmatched

The redirect runs before any tag can read the URL.

A redirect strips the tracking parameters

The visitor arrives with a click ID and lands on the local page without it.

Paid conversions matched to a campaignExample numbers
Paid conversions matched to a campaign (example)Default-language visitors: 92 %; Redirected visitors: 8 %03571928Default-language visi…Redirected visitors%

Example: share of conversions with a click ID, by visitor country, when only non-default countries are redirected.

How to check if your site has it

Test the redirect by hand
  1. Build a test URL

    Take your main landing page and add ?gclid=test123&utm_source=test&utm_medium=cpc.

  2. Load it from a target country

    Use a VPN or a browser set to the target language. Also test a private window, because some rules set a cookie after the first visit.

  3. Compare the final URL

    Check the address bar after the page loads. If gclid and the UTMs are missing, the redirect drops them.

  4. Inspect the redirect chain

    Run curl -sIL on the URL with an Accept-Language header and read each Location header.

Follow the redirect and show each Locationbash
curl -sIL -H "Accept-Language: de-DE,de;q=0.9" "https://example.com/?gclid=test123&utm_source=test" | grep -iE "^(HTTP|location)"

How to fix it

The principle is the same everywhere: the redirect target must include the original query string. Where the redirect lives depends on your stack, so find it first (plugin, theme, CDN rule, server config or app code).

Keep the query string in the redirect
  1. Find what redirects

    Check your multilingual plugin (WPML, Polylang, TranslatePress, Weglot) for automatic browser-language redirect settings, and any redirect or geo plugin.

  2. Test with the redirect on and off

    Turn off automatic redirection for a moment and retest. If the parameters survive, that setting is the cause. Check for an update, then look for an option to preserve query strings, or switch to a banner that suggests the language instead of forcing it.

Nginx: redirect German browsers and keep the query stringnginx
location = / {
  if ($http_accept_language ~* "^de") {
    return 302 /de/$is_args$args;
  }
}
Apache: keep the query string with QSAhtaccess
RewriteEngine On
RewriteCond %{HTTP:Accept-Language} ^de [NC]
RewriteRule ^$ /de/ [R=302,L,QSA]
Redirect behaviour

Before

  • /?gclid=abc redirects to /de/
  • Click ID never reaches the page
  • Conversions look like direct traffic

After

  • /?gclid=abc redirects to /de/?gclid=abc
  • Tags read the click ID on arrival
  • Conversions are matched to the ad
Language redirect and click IDsInteractive
Redirect drops the query string

Ad click → yoursite.com/offer?gclid=Cj0KCQ…&utm_source=google&utm_campaign=spring

301 redirect

Lands on → yoursite.com/offer/

  • gclid
  • utm_source
  • utm_campaign

The visitor lands on /de/ with no gclid or UTMs. The sale is reported as direct.

Toggle the cause to see what happens to the tracking parameters.

How to confirm it's fixed

Confirmation checklist
  • A tagged URL keeps gclid and UTMs after the redirect, in every target language and country.
  • curl -sIL shows the query string in each Location header.
  • The browser's network tab shows the GA4 and ad platform hits carrying the click ID or UTMs on the landing page.
  • GA4 Realtime or DebugView shows the right source and medium for your test visit.
  • The same test works in a private window and on mobile.

How to prevent it happening again

Prevention
  • Add a tagged-URL test to your launch checklist for every new language, country or domain.
  • Re-test after changing a translation plugin, CDN rule, theme or Markets setup.
  • Prefer suggestion banners to forced redirects.
  • Document where each redirect lives, so the next person can find it.
  • Send paid traffic to the final localised URL where you can, so no redirect is involved.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. Its robot visitor runs your journeys from the EU or the US and checks that the tracking hits for GA4, Google Ads, Meta and other platforms are sent. If the redirect on the route it takes drops the parameters, you can see missing tracking hits.

Questions people ask

Why is my gclid missing after a language redirect?

The redirect rule probably builds the new URL from the path only and discards the query string. The click ID is lost before your tags run. Change the rule to append the original query string, then retest.

Do geo redirects remove UTM parameters?

They can. It depends on how the rule is written. A redirect that keeps the query string ($is_args$args in Nginx, QSA in Apache) preserves UTMs, while one that does not will drop them.

How do I test a country redirect without being in that country?

Use a VPN exit in the target country, or set the browser language for language-based rules. Load a URL with ?gclid=test&utm_source=test and check the final address. IP-based rules will not trigger from curl on your own machine.

Will losing the gclid hurt my Google Ads results?

Yes. Without the click ID, conversions cannot be matched to the ad click, so reporting undercounts and bidding has less data. Enhanced conversions may recover some matching, but fixing the URL is the cleaner answer.

Should I redirect visitors by language automatically?

It is usually safer to suggest the language with a banner and let people choose. Forced redirects can break tracking, annoy travellers and confuse search engines.

Can Google Tag Manager fix a redirect that drops UTMs?

Not if the redirect happens on the server, because the parameters are gone before the page loads. Fix the redirect itself. GTM can only help if a JavaScript redirect runs inside the page.

Does FunnelGuard detect a geo redirect that drops click IDs?

Only partly. It checks that tracking hits fire on the journeys it runs from the EU or US, but it has no geo variant to test each country or language. Test other regions by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: no geo variant.

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.