How redirects and link shorteners strip UTMs and click IDs

Updated · 6 min read

Short answer

A redirect loses UTMs and click IDs when any hop rebuilds the destination URL without the original query string. Common culprits are HTTP to HTTPS or www rules, trailing-slash and language redirects, link shorteners, link-in-bio tools and email click wrappers. Trace the chain hop by hop with a command-line request, find the hop where parameters disappear, and change that rule to pass the query string through.

A campaign shows 1,900 clicks and your analytics shows a third of them as direct traffic. Nothing is broken in the ad platform. Somewhere between the ad and your page, a hop in the redirect chain dropped the query string, and with it the UTMs and click ID that would have identified the visit. The good news is that this is one of the few tracking problems you can diagnose with certainty, because every hop can be observed.

Why parameters disappear at a redirect

A redirect is a response that says "go to this other URL instead." The server writing that response decides what the new URL contains. If its rule says "send example.com/demo to https://www.example.com/demo/," and nobody told it to carry the query string along, the parameters are gone. The browser follows the new URL faithfully, without them.

So the question is never "do redirects strip parameters?" Some do, most can be told not to. The question is which hop in your chain is written without query string pass-through.

Where it usually happens

In-app browsers on social apps add another layer. Some open links in a stripped-down browser, some hand off to the system browser, and browser privacy features have at times removed certain known click ID parameters in specific contexts such as private browsing or links opened from mail apps. The exact behavior varies by app version and browser setting, so test on real devices instead of assuming.

Trace the chain hop by hop

You can see every hop with a single command. In a terminal:

curl -sIL "http://example.com/demo?utm_source=google&utm_campaign=soc2_q4&gclid=TEST123" | grep -i -E "^(HTTP|location)"

The -I flag asks for headers only and -L follows redirects. For a cybersecurity SaaS company in Chicago that ran this against its own ad URL, the output looked like this:

HTTP/1.1 301 Moved Permanently
location: https://example.com/demo?utm_source=google&utm_campaign=soc2_q4&gclid=TEST123
HTTP/2 301
location: https://www.example.com/demo
HTTP/2 301
location: https://www.example.com/demo/
HTTP/2 200

The first hop (HTTP to HTTPS) kept the parameters. The second hop (bare domain to www) dropped them. The third hop added a trailing slash to a URL that was already clean. The visitor arrived with nothing.

The fix belongs at the second hop. In server terms, the rule needs to append the original query string. On Nginx that is usually done by using $request_uri or appending $is_args$args in the return; on Apache the QSA flag on a rewrite rule does it; hosting dashboards and CDN redirect rules typically have a "preserve query string" option. Check your platform's documentation for the exact syntax. While you are there, point the ad's final URL directly at https://www.example.com/demo/ so the chain has zero hops for paid traffic.

curl shows server-side redirects only. For JavaScript redirects, open the browser's developer tools, enable "preserve log" on the network tab, and load the ad URL. Every document request is listed in order with its full URL.

Measure how much you were losing

Before and after the fix, compare platform clicks with landing page hits that still carry the click ID. Your server or CDN logs, or your analytics tool filtered to the landing path, will give you the second number.

Say the security company's Google Ads account reported 1,900 clicks to the demo page over two weeks. Hits on /demo/ with a gclid parameter: 1,120. That is 59%. Some gap is normal, because people click and then close the tab before the page loads, and blocked or prefetched loads add noise. But 41% is far beyond that.

After fixing the www rule and updating final URLs, the next two weeks showed 1,880 clicks and 1,710 hits with a gclid, or 91%. The remaining 9% is the background gap of abandoned and uncounted loads, and it becomes your baseline for spotting the next regression.

The business consequence went beyond attribution. Demo requests are matched back to Google clicks for offline conversion uploads, and without a stored gclid a closed deal cannot be uploaded at all. Roughly two in five demo requests from search had been invisible to that loop.

Protect parameters at the landing page

Even with clean redirects, store parameters as soon as the visitor lands. Read the UTMs and any click ID from the URL on the first page load, write them to a first-party cookie or local storage, and copy them into hidden form fields when the visitor converts. That way a later internal redirect, a language switch or a single-page app route change cannot lose them. Click IDs explained covers which IDs to capture and how long each stays useful, and cross-domain tracking covers keeping them when the visitor moves to a checkout or calendar on another domain.

A short diagnostic routine

  1. Copy the exact final URL from a live ad, including any tracking template or URL suffix the platform appends.
  2. Run it through curl -sIL with a test click ID appended. Note the hop where parameters vanish.
  3. Load the same URL in a desktop browser with the network log preserved, to catch JavaScript redirects.
  4. Open it from inside each social app you advertise on, on a real phone, and check the final address.
  5. Compare platform clicks with landing hits carrying a click ID, before and after any fix.
  6. Re-run steps 2 and 5 after every site migration, CMS update or new redirect rule.

If you build final URLs with platform macros, check the resolved URL, not the template. Dynamic UTM parameters for Meta and Google Ads explains how those macros expand.

FAQ

Does a 301 redirect remove UTM parameters by default?

No. The status code does not decide anything about parameters. Whether they survive depends on how the rule builds the destination URL, so test each hop.

Will Google Ads auto-tagging still work if my redirect drops the gclid?

The click is still recorded in Google Ads, but your site never receives the gclid, so the conversion tag and any offline import cannot link the conversion to that click.

Are link shorteners safe to use in paid ads?

They add a hop you do not control and rarely give a benefit in paid placements, where the URL is not visible anyway. Use your direct final URL in ads and keep shorteners for print or spoken mentions.

Why do parameters survive on desktop but not in an app?

The in-app browser, or the handoff from app to system browser, may handle the URL differently. Test inside each app on a current phone, because behavior varies by app version and browser settings.

See your own numbers with the source attached

Adtrix connects Meta and Google Ads read-only, shows each ad next to its spend and reported results, and keeps CRM leads and booked calls in their own lane.

Start a 14-day trial See pricing