Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Ad landing page redirect stripping UTMs and gclid: how to fix it

CNV-111High impactDetectedBy FunnelGuardPublished Updated
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.

Where the campaign data is lost
  1. Ad clickURL has gclid and UTMs
  2. RedirectQuery string dropped
  3. Landing pageClean URL, no campaign data
  4. 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

What goes wrong when parameters are stripped
  • 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.
Paid conversions reported vs actualExample numbers
Paid conversions reported vs actual (example)Actual from ads: 100 conversions; Reported, redirect keeps params: 96 conversions; Reported, redirect strips params: 12 conversions038771009612Actual from adsReported, redirect ke…Reported, redirect st…conversions

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

Test your landing page URL by hand
  1. 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.

  2. 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.

  3. 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.

  4. 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.

Follow redirects from the command linebash
curl -sIL "http://example.com/offer?utm_source=test&gclid=TEST123" | grep -iE "^(HTTP|location)"

How to fix it

Keep the query string on redirects
  1. 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.

  2. 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'.

  3. 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.

Nginx: http to https that keeps UTMs and gclidnginx
server {
  listen 80;
  server_name example.com www.example.com;
  return 301 https://example.com$request_uri;
}
Apache: force https and keep the query stringhtaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
JavaScript redirect that keeps parametersjavascript
window.location.replace('https://example.com/new-page' + window.location.search + window.location.hash);

How to confirm it's fixed

Same ad click, before and after

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
Confirm the fix
  • 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

Habits that keep parameters safe
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: utm_lost failure class.

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.