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.
- Ad click/?gclid=abc&utm_source=google
- Geo redirect301 to /de/ without query string
- Landing pageNo gclid or UTMs in URL
- ConversionReported as direct or unmatched
The redirect runs before any tag can read the URL.
The visitor arrives with a click ID and lands on the local page without it.
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
Build a test URL
Take your main landing page and add
?gclid=test123&utm_source=test&utm_medium=cpc.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.
Compare the final URL
Check the address bar after the page loads. If
gclidand the UTMs are missing, the redirect drops them.Inspect the redirect chain
Run
curl -sILon the URL with anAccept-Languageheader and read eachLocationheader.
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).
Find what redirects
Check your multilingual plugin (WPML, Polylang, TranslatePress, Weglot) for automatic browser-language redirect settings, and any redirect or geo plugin.
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.
Check Markets and apps
In Settings > Markets, review domains and languages. Country and language redirect apps, including Shopify's own geolocation app, can drop parameters.
Prefer a suggestion over a forced redirect
Use a banner that lets the visitor choose, or confirm the redirect app keeps the query string. Retest with a tagged URL.
GTM cannot stop a server redirect
If the redirect is server-side, fix it at its source. If it is a JavaScript redirect, make sure it runs
window.location.searchinto the new URL, and that it fires after or with your tags.
Check Localization and 301 rules
In Site settings, review Localization and Hosting > 301 redirects. Webflow redirects match paths, so test whether your rule keeps the query string, and avoid auto-redirecting by browser language if it does not.
Nginx
Use
return 302 /de$request_uri;or$is_args$argsso the query string is kept.Apache
In
.htaccess, add theQSAflag to the rewrite rule so the query is appended.Application code
Build the redirect URL from the path plus the original query string, not the path alone.
location = / {
if ($http_accept_language ~* "^de") {
return 302 /de/$is_args$args;
}
}RewriteEngine On
RewriteCond %{HTTP:Accept-Language} ^de [NC]
RewriteRule ^$ /de/ [R=302,L,QSA]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
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
- A tagged URL keeps gclid and UTMs after the redirect, in every target language and country.
curl -sILshows 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
- 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.
Related issues
- TRK-311UTMs lost on redirect (http->https, www, trailing slash)Fix guide
- TRK-334Server redirects drop query string (301 to /)Fix guide
- TRK-336A/B testing tool redirect drops UTMsFix guide
- TRK-333Shortener/redirect link (bit.ly, Linktree) strips UTMsFix guide
- TRK-322fbclid/gclid trigger 404 or WAF block on landing pageFix guide
- TRK-312UTMs lost when moving from landing page to form pageFix guide