Articles ·

What is fbclid and fbc in the Meta Conversions API?

fbclid is the click ID Meta adds to your ad link. fbc is the same ID in Meta's format, sent with Conversions API events. How they work and why fbc goes missing.

fbclid is the click ID Meta adds to your link when someone clicks your ad on Facebook or Instagram, so it shows up in the landing page URL as ?fbclid=IwAR2F4.... fbc is that same ID wrapped in Meta’s format, fb.1.1554763741205.IwAR2F4..., and it’s the field you send in a Conversions API event so Meta can tie the event back to the ad click.

In short: fbclid is the raw value in the URL, and fbc is the formatted copy that gets sent. The Meta Pixel stores it in a cookie called _fbc. A server-side setup reads that cookie, or builds the value from the URL, and puts it in the event’s user_data. Meta uses it to tie a view, add to cart or purchase to the click that started the visit. It isn’t hashed, it’s case sensitive, and a visit from Google won’t have one.

fbclid: the click ID in the URL

When a shopper clicks your ad, Meta adds a query parameter to the link before sending them to your store:

https://yourstore.com/products/linen-shirt?utm_source=facebook&fbclid=IwAR2F4-dbP0l7Mn1Iaw

Meta generates that value. You don’t create it, you can’t choose it, and you shouldn’t change it. You’ll also see it on visits from ordinary links clicked inside Facebook and Instagram, not only ads.

On its own, fbclid does nothing. It sits in the URL. Something on your site has to read it and send it to Meta, and that’s where fbc comes in.

fbc: the same ID, in the format Meta accepts

Meta won’t take a bare fbclid in a Conversions API event. It wants this format:

fb.1.1554763741205.IwAR2F4-dbP0l7Mn1IawQQGCINEz7PYXQvwjNwB_qa2ofrHyiLjcbCRxTDMgk
Part Example What it is
Version fb Always fb
Subdomain index 1 Cookie domain: 0 for com, 1 for example.com, 2 for www.example.com. Use 1 when a server builds it without a cookie
Creation time 1554763741205 When it was stored, in milliseconds. Without a cookie, the time you first saw that fbclid
fbclid IwAR2F4... The value from the URL, exactly as it was

If you use Meta’s Parameter Builder library, the value gets a fifth part at the end, an eight-character appendix Meta uses to track the library’s version and language. That’s normal.

Where does the value live between the click and the sale? When the Meta Pixel runs on your site, it saves fbc in a cookie called _fbc on your domain. Meta recommends keeping it for 90 days, and replacing it only when a new click brings a different fbclid. A server-side setup can also keep it in its own storage instead of a cookie.

fbc vs fbp

People mix these two up, because they look alike and sit next to each other in user_data.

fbc fbp
Name in Meta’s docs Click ID Browser ID
Cookie _fbc _fbp
Created when A shopper arrives with an fbclid The Meta Pixel first runs in that browser
Format fb.1.<time>.<fbclid> fb.1.<time>.<random number>
Present for Visits from a Meta link Any visit where the pixel set the cookie

So fbp says “this is the same browser as before”, and fbc says “this browser came from that click”. Neither is hashed. Meta asks you not to rewrite either cookie.

How fbc gets from the ad click to a Conversions API event

Here’s the path on a typical store:

  1. The shopper clicks your ad and lands on ?fbclid=....
  2. The pixel (or your server) reads the fbclid and stores it as fbc, in the _fbc cookie or on the server.
  3. Each event that follows, such as ViewContent, AddToCart or Purchase, carries that stored value.
  4. The server sends the event to the Conversions API with fbc inside user_data:
{
  "event_name": "Purchase",
  "event_time": 1795240000,
  "event_id": "order-6129384710",
  "action_source": "website",
  "user_data": {
    "fbc": "fb.1.1795230000000.IwAR2F4-dbP0l7Mn1Iaw",
    "external_id": "5f1c2a9e-visitor"
  },
  "custom_data": { "currency": "USD", "value": "64.00" }
}

Note the two clocks: event_time is in seconds, the time inside fbc is in milliseconds.

Step 3 is the fragile one. The purchase happens on the order confirmation page, and that page’s URL doesn’t have an fbclid in it. If nothing kept the value from the landing page, the Purchase goes out without fbc. That’s why Meta tells you to read _fbp and _fbc on the landing page, and not only on later events.

Why fbc is missing on some events

Seeing fbc on part of your events, not all of them, is usually fine. Two causes are normal and need no fix:

  • The visit didn’t come from Meta. Google, email, direct visits and returning customers arrive without an fbclid. Nothing to send, and nothing wrong.
  • The shopper declined marketing cookies. Then no marketing events go to Meta for them at all, fbc or not. See how Shopify’s privacy settings affect Meta events.

Three are worth a look:

  • Only the landing page had it. The Purchase page has no fbclid in its URL, so a setup that keeps nothing sends Purchase without fbc.
  • Something stripped it first. Safari’s Link Tracking Protection removes fbclid in Private Browsing and in links opened from Mail and Messages. Some redirects drop it too. More in do ad blockers block the Facebook pixel on Shopify.
  • It was changed on the way. Lowercasing or trimming the fbclid breaks it. Events Manager can flag this as a modified fbclid.

Events Manager also warns about an fbclid older than 90 days (an “expired” value). That usually means an old _fbc cookie is still being sent long after the click.

How to check what your setup sends

Start in Events Manager. Open your pixel, pick an event such as Purchase, and look at its Event Match Quality details. Meta lists the customer information it receives and how often each one arrives, Click ID (fbc) among them. A low share there isn’t a fault in itself if much of your traffic doesn’t come from Meta ads.

Then test one real path. Click your own ad, check that the landing page URL still has fbclid= in it, and, if the Meta Pixel runs on your store, look for the _fbc cookie in your browser’s developer tools (Application, then Cookies). If the URL has no fbclid, look at your redirects before anything else.

The rest of the checks, from Test Events to Diagnostics, are in how to check the Meta Conversions API is working on Shopify.

Does sending fbc raise Event Match Quality?

It counts, but it won’t carry the score on its own. Event Match Quality looks at all the customer information on an event: hashed email and phone, IP address, user agent, fbp, external_id and fbc. Meta weighs them together, and fbc is only present for visits that came from a Meta link. A setup that sends fbc and little else will score lower than one that also sends hashed contact details. Whether that trade is worth it depends on how much customer data you’re willing to hand over.

Where SuperPixel fits

SuperPixel is the tracking app I build for Shopify stores. It installs its own pixel through Shopify’s customer events, so there’s no theme code to edit, and it sends PageView, ViewContent, AddToCart, InitiateCheckout and Purchase to Meta’s Conversions API from its own server.

For matching, it sends two things: fbc, built from the fbclid in the ad link, and a pseudonymous visitor ID as external_id. Those are the only identifiers it sends. It collects no names, emails, phone numbers or addresses, and it doesn’t send IP addresses or user agents to Meta. So don’t expect it to raise your Event Match Quality, and don’t read this as an fbc on every event or every Purchase either. A visit with no fbclid has none to send.

It only sends the events of shoppers who allowed marketing in Shopify’s privacy settings. Its Live Events page shows the latest events, which pixels each one went to, and the reason when one wasn’t sent. If you want the highest match quality Meta can give you, a setup that sends hashed customer details is the better fit, and this comparison walks through that choice.

FAQ

Should I hash fbc before sending it?

No. Meta asks for fbc and fbp as they are, unhashed. Only contact details like email and phone get hashed. A hashed fbc is just a string Meta can’t match to any click.

Can I build fbc on my server from the fbclid?

Yes. Read fbclid from the landing page’s URL, then send fb.1.<time>.<fbclid>, where the time is in milliseconds and is when you first saw that fbclid. Store it so later events, especially Purchase, can carry it too. Don’t change the fbclid’s case.

How long is an fbc value good for?

Meta recommends keeping the _fbc cookie for 90 days, and Events Manager warns about fbclid values older than that. A newer click with a different fbclid should replace the stored value.

Is fbclid personal data?

It doesn’t name anyone, but it’s an identifier that ties a browser to an ad click, so treat it like other tracking data. On Shopify, the customer privacy settings should decide whether a shopper’s marketing events, and their fbc with them, go to Meta.

Why does Events Manager say my server isn’t sending fbc?

Either your server never sends it, or it sends it on too few events for Meta’s liking. Check one event’s payload in Test Events. If fbc is there on landing page events but not on Purchase, the value isn’t being kept between pages.

Try it on your store

If you want a server-side setup that sends fbc from your ad links without handling your customers’ contact details, you can try SuperPixel free on your first 5 purchases. After that it’s $29 a month or $232 a year, billed through Shopify. Questions about what your store sends? Email me at hello@superpixel.app.