Skip to content
FunnelGuard

Fix guide by FunnelsGuard

fbclid stripped by redirect: how to find and fix it

TRK-188High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

fbclid is the Facebook click ID. Meta adds it to the end of your ad's link, for example https://example.com/offer?fbclid=IwAR.... The Meta Pixel reads it on the landing page and saves it in the _fbc cookie. That cookie is later sent with your events so Meta can match a lead or sale to the ad click.

Why it costs you leads or sales

Without fbclid, the Pixel cannot create _fbc. Your events still fire, but Meta has less to match them to the ad click. Attribution drops, reported conversions fall, and the algorithm gets fewer signals to learn who converts. Campaigns can look worse than they are, and you may cut budget on ads that work.

Where the click ID is lost
  1. Meta ad clickURL ends in ?fbclid=...
  2. Redirecthttp to https or non-www to www drops the query string
  3. Landing pagePixel sees no fbclid
  4. _fbc cookieNever created
  5. Lead or purchase eventSent without click ID

The redirect drops the query string, so everything after it has no fbclid.

Conversions Meta can match to adsExample numbers
Conversions Meta can match to ads (example)Redirect strips fbclid: 35 %; Redirect keeps fbclid: 70 %027543570Redirect strips fbclidRedirect keeps fbclid%

Example: share of conversions with a click ID before and after fixing the redirect. Your numbers will differ.

How to check if your site has it

Test by hand in two minutes
  1. Build a test URL

    Take the exact URL your Meta ad uses and add ?fbclid=test123 (or &fbclid=test123 if it already has parameters). Use the ad's real destination, including http or non-www if that is what the ad uses.

  2. Open it in a private window

    Paste it into the address bar and let the page load.

  3. Look at the final address

    If the address bar no longer shows fbclid=test123, a redirect removed it.

  4. Check the cookie

    Open DevTools, then Application, then Cookies. Look for _fbc. It should look like fb.1.1700000000000.test123. If the Pixel is installed and _fbc is missing, the parameter was lost.

  5. See each hop

    In DevTools Network, tick Preserve log and reload. Requests with status 301 or 302 show the Location header. Check that each one still contains the query string.

Follow redirects and print each hopbash
curl -sIL "http://example.com/offer?fbclid=test123" | grep -iE "^(HTTP|location)"

How to fix it

The goal is the same everywhere: every redirect must carry the query string to the new address, and there should be as few hops as possible. Best of all, point your ads straight at the final URL so no redirect is needed.

Keep the query string by platform
  1. Find the redirect source

    Check redirect plugins (Redirection, Rank Math, Yoast Premium, Safe Redirect Manager), your host's force-HTTPS or www setting, and .htaccess.

  2. Turn on query parameter passing

    In the Redirection plugin, edit the rule and set Query Parameters to Pass-through (or Exact match and pass). In Rank Math, use a redirect type that keeps parameters, or add a regex rule.

  3. Update the ad URL

    Set the ad's destination to the final https URL so no redirect runs.

Apache: force HTTPS and www, keeping the query stringhtaccess
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L,QSA]
Nginx: redirect and keep the query stringnginx
server {
  listen 80;
  server_name example.com www.example.com;
  return 301 https://www.example.com$request_uri;
}
JavaScript redirect that keeps the query stringjavascript
window.location.replace('https://www.example.com/offer' + window.location.search + window.location.hash);
See what the redirect does to fbclidInteractive
Redirect strips the query string

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 landing page loads without fbclid, no _fbc cookie is set and Meta cannot match the conversion to the click.

Toggle the redirect behaviour to see the effect on attribution.

How to confirm it's fixed

Confirmation checks
  • Opening your ad URL plus ?fbclid=test123 ends on a page whose address still contains fbclid=test123.
  • curl -sIL shows each Location header with the query string intact.
  • The _fbc cookie exists and ends with test123.
  • There is only one redirect hop, or none.
  • All variants work: http, https, www, non-www, with and without trailing slash.
  • Meta Events Manager shows the fbc parameter on events from real ad traffic over the next days.

How to prevent it happening again

Habits that keep the click ID safe
  • Point ads at the final canonical URL, not a short or old one.
  • Test with ?fbclid=test123 after any domain, SSL, www, CDN or redirect plugin change.
  • Keep a list of redirect rules and review it when pages are renamed.
  • Avoid chains such as http to https to www to a new path.
  • Test new landing pages with a tagged URL before you launch a campaign.

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor opens your landing page the way an ad click would, with tracking parameters on the URL, and checks whether they are still there after redirects and whether the expected tracking hits are sent to Meta. If the click ID is lost, you get one alert, after a re-check from a second region, with a screenshot and a likely cause. Test traffic is marked (utm_source=funnelguard, fg_test=1) and never clicks real ads.

The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial.

Questions people ask

Why is my fbclid missing after clicking a Facebook ad?

Most often a redirect between the ad and the landing page drops the query string. Common causes are http to https rules, non-www to www rules, redirect plugins and JavaScript redirects. Test your ad URL with ?fbclid=test123 added and see whether it survives.

What does the fbclid parameter do?

fbclid is the Facebook click ID that Meta adds to ad links. The Meta Pixel reads it and stores it in the _fbc cookie, which is sent with events so Meta can match conversions to the ad click.

How do I stop a redirect removing URL parameters?

Make the redirect pass the query string. In Apache add the QSA flag, in Nginx redirect to $request_uri, in JavaScript append window.location.search, and in plugins enable parameter pass-through. Better still, point the ad at the final URL.

How do I check if fbclid is reaching my landing page?

Open your ad URL with ?fbclid=test123 in a private window and see whether the final address still has it. Then check DevTools, Application, Cookies for an _fbc cookie ending in test123.

Will losing fbclid stop my Meta Pixel firing?

No. The Pixel still fires events. You lose the click ID that links them to the ad click, so attribution and matching get worse, and Meta has less to learn from.

Is a Conversions API enough if fbclid is stripped?

Not by itself. The server can only send fbc if your site captured the click ID first. If a redirect removes fbclid before the page loads, there is nothing to send.

Can I add fbclid back after it is lost?

Not reliably. Once the click ID is gone you cannot recover it for that visit. Fix the redirect so it arrives intact on future clicks.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

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.