
You add ?utm_source=newsletter to a link, send the email, and a week later the campaign barely shows up in analytics. The clicks happened. The tracking didn’t.
Very often the culprit is a redirect somewhere between the link and the page. Some redirects pass the query string through untouched, some replace it, and some drop it without a word.
Here’s what decides which one you get, where parameters usually go missing, and how to check your own links in a minute.
What is a query string, and why does it matter here?
A query string is everything after the ? in a URL. In example.com/spring?utm_source=newsletter&utm_medium=email, the path is /spring and the query string is utm_source=newsletter&utm_medium=email.
UTM tracking lives entirely in that part. Analytics tools read the parameters on the page where the visit lands, as Google describes in its guide to campaign URLs. If a redirect strips them on the way, the visit still arrives, but it gets counted as direct or referral traffic instead of your campaign.
The same goes for other parameters: ad click IDs, referral codes, search filters, or a ?lang=de that a page needs to work properly.
Does a redirect keep the query string by default?
It depends on how the rule builds the new URL, not on the status code. A 301, 302, 307 or 308 all behave the same here: the server answers with a Location header, and the browser goes exactly where that header points.
So the real question is whether the rule copies the original query string into that new address. Some setups do it automatically, some only when you ask, and some never do.
Where query strings usually get lost
Parameters rarely disappear on purpose. They fall off in a few predictable places:
Hard-coded destinations in server config. In Nginx,
return 301 https://example.com/new;sends visitors to exactly that URL, with no query string. You have to add the original request yourself, for example with$request_uri. Therewritedirective is different: per the Nginx docs, it appends the original arguments unless the replacement ends with?.Rules that set their own parameters. In Apache, a
RewriteRulepasses the query string through by default, but if the new URL contains its own query string, the original one is replaced. The QSA and QSD flags decide whether they are combined or discarded.Simple domain forwarding. Forwarding that sends a whole domain to one fixed URL, often the homepage, tends to throw away both the path and the query string.
Redirect chains. Every hop is a new chance to lose something. If one step in a redirect chain builds a clean URL, everything after it arrives without parameters.
The destination site itself. Sometimes your redirect is fine and the new site adds its own hop, for a trailing slash, a language folder or a login check, and that hop drops the parameters.
The #section part of a URL is a different story. Browsers never send it to the server, so redirect rules can’t see it or keep it. What happens to it is up to the browser.
What happens when both URLs have parameters?
Say a visitor arrives at oldbrand.com/spring?utm_source=newsletter and your rule points to newbrand.com/sale?utm_source=redirect. Now there are two values for the same parameter.
Tools handle this differently. Some replace the original query string with the destination’s, some merge both, and some let the original value win. If you rely on campaign data, know which behaviour your setup has, and avoid putting UTM tags on redirect destinations unless you mean to override the incoming ones.
How to check that your parameters survive
You don’t need to guess. Take a real link, add a harmless test parameter like ?utm_source=test, and follow it:
Paste the full URL into the Redirect Tester.
Look at every hop, not only the final one. The query string should appear in each
Locationuntil the last page.Check that the final URL still contains
utm_source=test, spelled exactly the same.If you can, open the link in a private window and look for the test visit in your analytics real-time view.
If the parameter disappears, the hop where it vanished tells you which rule or platform to fix.
How Redirect Supply handles query strings
In Redirect Supply, rules match on the path and the query string is passed on to the destination. A visit to /about?utm_source=newsletter follows your /about rule and keeps utm_source=newsletter. If the destination already sets the same parameter, the destination’s value stays, as described in the path redirects docs.
This works the same with wildcard rules that forward whole sections, so a rebrand or migration doesn’t quietly cut your campaign links off from their reports.
Test one tagged link before the next campaign goes out. It takes a minute, and it’s much easier than explaining a gap in the numbers afterwards.

