On this page
What this issue is
Ad clicks carry data in the URL after the question mark, called the query string. It can include gclid (the Google Ads click ID), utm_source, utm_medium, utm_campaign and similar tags. Example: https://example.com/offer?utm_source=google&gclid=abc123.
- Ad clickURL has gclid and UTMs
- RedirectQuery string dropped
- Landing pageClean URL, no campaign data
- ConversionCredited to direct or not matched
The visitor arrives, but the redirect removes the parameters before any tag can read them.
Why it costs you leads or sales
- Google Ads cannot match conversions to clicks, so reported conversions drop and automated bidding learns from less data.
- GA4 files the sessions under direct or the wrong channel, so paid campaigns look weaker than they are.
- Campaign and content-level UTMs disappear, so you cannot compare ads or audiences.
- CRM and form tools that store UTMs in hidden fields save blank values on every lead.
- You may cut budget from campaigns that actually work.
Example: 100 leads came from ads in a week. With a stripping redirect, only a small share is credited to the campaign.
How to check if your site has it
Build a test URL
Take your ad's final URL and add test values, for example https://example.com/offer?utm_source=test&utm_campaign=check&gclid=TEST123. Use the exact address and protocol your ad uses.
Open it in a private window
Paste it into the address bar. Once the page loads, look at the address. If utm_source and gclid are gone, a redirect stripped them.
See each hop
Open browser DevTools, go to the Network tab, tick Preserve log, reload, and look at the document requests. Each 301 or 302 shows a Location header with the next URL.
Try the variations
Repeat with http:// instead of https://, with and without www, with and without a trailing slash, and from a mobile connection or another country if you use geo or language rules.
curl -sIL "http://example.com/offer?utm_source=test&gclid=TEST123" | grep -iE "^(HTTP|location)"How to fix it
Find the redirect source
Check redirect plugins (Redirection, Rank Math, Yoast Premium, Safe Redirect Manager), your host's redirect settings and .htaccess. Disable one at a time and retest.
Pass the query string
In the Redirection plugin, edit the rule and set Query Parameters to 'Exact match' or 'Pass-through' so parameters are kept on the target. In other plugins, look for an option like 'pass query string'.
Check Settings > General
Make sure WordPress Address and Site Address use the final https and www choice, so WordPress does not add its own hop.
Check URL Redirects
Go to Content > Menus > View URL Redirects (or Online Store > Navigation > URL Redirects). Shopify keeps query parameters on these redirects in most cases, but test it.
Use the final URL in ads
Point ads at the live product, collection or page URL instead of an old path that redirects.
Check market and language redirects
If a geolocation or language app redirects visitors, test it with parameters and ask the app vendor how it handles query strings.
Look for tag-driven redirects
Search tags for custom HTML or JavaScript that sets window.location. Change it to append location.search to the new URL.
Capture parameters early
As a safety net, store gclid and UTMs in first-party cookies or hidden form fields on the first page view, before any later redirect runs.
Review 301 redirects
Open Site settings > Hosting > 301 redirects. Webflow does not carry the query string over unless the rule is written for it, so test every rule used by ads.
Avoid redirecting ad URLs
Set ad final URLs to the published page slug. Check Hosting settings for the default domain and www or non-www choice so there is no extra hop.
Check funnel and domain settings
In Sites > Funnels, confirm the custom domain and step path in your ad match the published URL. Review any redirect set on the step or in Settings > Domains.
Check trigger link redirects
If you send ads through a trigger link or short link, retest that it keeps parameters. If not, use the direct funnel URL.
Open URL Redirect Manager
Go to SEO > URL Redirect Manager and review rules for your ad page. Test each with a parameter URL.
Use the primary domain
Make sure ads use your connected primary domain and not the wixsite.com address that redirects to it.
Review URL Mappings
Open Settings > Developer Tools > URL Mappings. A mapped 301 may not keep the query string, so avoid pointing ads at a mapped URL.
Use the live URL
Set the ad final URL to the page's current address, with the primary domain and https.
Apache: keep the query
In .htaccess, mod_rewrite keeps the query string by default for a substitution without a '?'. Use 'RewriteRule ^old$ /new [R=301,L]' and do not end the target with '?' or use QSD.
Nginx: use $request_uri
Use 'return 301 https://example.com$request_uri;' which includes the query string. Do not use '$uri' alone, it drops it.
App code
When redirecting in your framework, append the original query string to the target URL.
server {
listen 80;
server_name example.com www.example.com;
return 301 https://example.com$request_uri;
}RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]window.location.replace('https://example.com/new-page' + window.location.search + window.location.hash);How to confirm it's fixed
Before
- Click goes to http://example.com/offer?gclid=...
- Redirect lands on https://example.com/offer
- GA4 shows direct, Google Ads cannot match the click
After
- Click goes straight to the final https URL, or the redirect keeps the query
- Landing URL still shows gclid and UTMs
- GA4 shows google / cpc and the lead has campaign data
- Open your test URL in a private window and check the address bar still shows the parameters after loading.
- Run the curl command and see parameters in every location header.
- Test http, https, www, non-www and trailing slash versions.
- In GA4 Realtime or DebugView, check that the session shows the right source and medium.
- Submit a test lead and check the UTM hidden fields in your CRM are filled in.
How to prevent it happening again
- Always use the final, non-redirecting URL as the ad destination.
- Re-test ad URLs after changing domains, SSL, www settings, redirect plugins, languages or a site migration.
- Keep a list of ad landing pages and test each with parameters after every release.
- Capture UTMs and gclid in first-party storage on the first page view as a backup.
- Avoid chaining link shorteners and redirect hops in front of landing pages.
How FunnelGuard handles this
Questions people ask
Why are my UTM parameters disappearing after a redirect?
The redirect rule sends visitors to a URL without the original query string. This is common with http to https, www, trailing slash, language and plugin-based redirects. Change the rule to keep the query string, or use the final URL in your ads.
Why is my Google Ads gclid missing on the landing page?
A redirect between the ad click and the page you see is the usual cause. The gclid is dropped when the new URL has no query string. Test your URL with a fake gclid and check each redirect hop.
Why does GA4 show my paid traffic as direct?
GA4 reads the source from UTMs or gclid on the landing URL. If a redirect removed them, the session has no campaign data and is often grouped as direct. Fixing the redirect restores proper attribution for new clicks.
How do I check if a redirect strips the query string?
Add test parameters to your ad URL, load it in a private window and see if they remain in the address bar. For detail, run curl -sIL on the URL and read each location header. The hop where the parameters vanish is the problem.
How do I keep the query string in an Nginx or Apache redirect?
In Nginx use return 301 with $request_uri, which includes the query. In Apache, a RewriteRule without a trailing question mark keeps it by default. Test afterwards with a parameter URL.
Does a 301 redirect remove UTM parameters automatically?
No. A 301 only sends the visitor to the Location it is given. Parameters are lost only if the rule or tool that creates that Location leaves them out.
Can I fix this just by changing my ad URL?
Yes, often. If the ad points straight at the final URL that returns a 200, there is no redirect to strip anything. Still fix the redirect so old links and other campaigns work.
Related issues
- CNV-098CTA opens in a new tab and loses UTMsFix guide
- CNV-109Links with http:// causing redirect hopsFix guide
- CNV-110Redirect loop on CTA targetFix guide
- CNV-108Links point to staging or localhostFix guide
- CNV-093CTA links to the wrong page (old offer, wrong product)Fix guide
- CNV-100CTA tracking event missing on clickFix guide