Meta Pixel Cross-Domain Tracking: Landing Page on One Domain, Checkout on Another
For marketers whose ads land on one domain and whose checkout runs on another: why the Meta Pixel loses the ad click on the way, and the three fixes that keep fbc on the Purchase, with Meta's cookie format and a test plan.
In short
The Meta Pixel has no cross-domain linker. It keeps the click ID in the _fbc cookie and a browser ID in _fbp, and each domain holds its own copy. To keep the click when checkout is on another domain, pass fbclid in the checkout link, move checkout onto your own subdomain, or carry the values across and send Purchase server-side.
Meta Pixel cross-domain tracking is not a setting you can switch on. The pixel stores the ad click ID in a first-party cookie called _fbc and a browser ID in a cookie called _fbp, and a cookie belongs to the domain that set it. When someone clicks your ad, lands on brand-site.com and then pays on a checkout at pay.cartvendor.com, the pixel on the checkout cannot read the cookies written on the landing page. The Purchase reaches Meta without the click ID unless you carry it across. Three fixes work: keep fbclid in the link to the checkout, move the checkout onto a subdomain of your own domain, or capture the identifiers on the first domain and send the Purchase from your server.
Why the Meta Pixel does not follow visitors across domains
Google Analytics 4 has a built-in answer to this problem. When you add your domains under Admin, Data collection and modification, Data streams, your web stream, Configure tag settings, Configure your domains, the Google tag adds a _gl parameter to links between them so the second domain reuses the same user and session IDs. Our guide to GA4 cross-domain tracking walks through it. Meta's documentation describes no equivalent linker for the pixel.
Meta documents both cookies in the same shape: version, subdomain index, creation time, then a final part. The version is always fb. The subdomain index records where the cookie is defined: 0 for com, 1 for example.com and 2 for www.example.com. The creation time is a Unix timestamp in milliseconds, so 13 digits. For _fbc the final part is the fbclid value from the landing URL, giving something like fb.1.1554763741205.AbCdEf123. For _fbp it is a random number the pixel generates, as in Meta's example fb.1.1596403881668.1116446470. The pixel writes _fbc automatically when the page URL contains fbclid.
Meta's customer information reference describes both values as the cookie stored under your domain, and browsers enforce that boundary: a site can set a cookie for its own domain or a parent of it, never for an unrelated domain. So brand-site.com and pay.cartvendor.com each hold their own _fbp, and only the domain where the visitor arrived with fbclid in the URL holds an _fbc. The checkout's pixel still fires Purchase, but with a new browser ID and no click ID. For the definitions on a single site, see fbclid, _fbc and _fbp explained.
Setups where the click ID gets lost
- A landing page built in a page builder on your domain, with the buy button pointing to a checkout from a cart or course tool such as ThriveCart, SamCart or Kajabi that runs on the tool's own address.
- A brand or content site on one domain and the shop on a separate one, for example brand.com and brandshop.com.
- A payment page hosted by a payment provider, where you cannot add any script at all. Our guide to Stripe Checkout conversion tracking covers that case in detail.
- Country sites on separate domains that send every buyer to one shared checkout domain.
Moving between www.brand.com and shop.brand.com is a different case. Both are subdomains of brand.com, and a cookie set on the root domain is readable on every subdomain, which is why the second fix below works.
Fix 1: the same pixel on both domains, with fbclid in the checkout link
Install the same pixel (Meta's newer documentation also calls it a dataset) on the landing page and on the checkout. Because the pixel stores the click ID in _fbc whenever fbclid is in the page URL, the checkout can write its own _fbc, as long as the visitor arrives there with fbclid still attached. That means the link from your landing page to the checkout must include it, for example pay.cartvendor.com/brand/offer?fbclid=AbCdEf123. With a fixed button URL, that takes a short script that reads fbclid from the landing URL and appends it to every checkout link. Meta states that the click ID is case sensitive and must not be modified, so the script must copy it exactly, without lowercasing or trimming it.
The limits: the checkout must keep the query parameter on its first page and let you add the pixel. Its _fbc gets a later creation time than the click, and its _fbp differs from the landing page's. A visitor who leaves and comes back later through a bookmark or an email has no fbclid in the link, so the checkout has nothing to store. To confirm both domains load the same pixel ID, run each page through the Pixel inspector. It reads the initial HTML only, so a pixel added by a tag manager needs checking in Events Manager instead.
Fix 2: put the checkout on a subdomain of your own domain
If your cart or course tool lets you connect your own domain or subdomain, so that checkout.brand.com serves its pages, use it. ThriveCart, SamCart and Kajabi all list custom domains on their pricing pages, but plans differ, so check that yours puts the checkout pages on your domain. Once both share the root domain brand.com, a cookie set on brand.com is available to every subdomain under it. The subdomain index 1 in Meta's example values marks exactly that: a cookie defined on the root domain. If the _fbc and _fbp values on your landing page start with fb.1, the pixel on checkout.brand.com can read the same cookies, with no link decoration and no dependence on the visitor following one particular link.
Fix 3: carry the identifiers yourself and send the Purchase server-side
This is the only fix that works when the checkout accepts no pixel. You read the identifiers on the landing domain, attach them to the order, and send the Purchase to the Conversions API when the order notification arrives.
- 1On the landing page, read fbclid from the URL, the _fbc and _fbp cookies, and the visitor's browser user agent. If fbclid is present but _fbc is not, build fbc as fb.1, a full stop, the time you first saw the click in milliseconds, a full stop, and the unmodified fbclid. Meta says to use subdomain index 1 when you generate the value on a server.
- 2Pass those values into the checkout as data attached to the order: hidden fields on an opt-in form (see capturing parameters in hidden form fields), URL parameters your cart tool saves against the order, or metadata on a payment session. Keep personal data such as email addresses out of URLs.
- 3When the order completes, have the cart tool or payment provider send a webhook to your server or automation platform.
- 4Send a Purchase to the Conversions API with action_source set to website, event_time from the order, event_source_url set to the checkout page address, value and currency, the stored fbc and fbp unhashed, client_user_agent, client_ip_address if you captured it, and hashed email and phone.
- 5Give the event an event_id, such as the order ID. If a pixel on the checkout also fires Purchase, it must send the same ID and the same event name so Meta keeps one copy.
Two details catch people out. Meta requires client_user_agent for website events, and a webhook is sent by the vendor's server, not the shopper's browser, so the user agent and IP address on that request describe the vendor. Capture the shopper's own values on the landing page and pass them through with the click ID. And if you run the pixel and the server event side by side, read our guide to Meta CAPI event deduplication before going live, because a missing or mismatched event ID can count each order twice.
Verify both domains and set event_source_url
Meta's server event reference states that event_source_url is required for website events sent through the Conversions API, and that the URL should match the verified domain. In a two-domain funnel the Purchase happens on the checkout, so verify that domain as well as your landing site. Verification is done in Meta Business Suite (formerly Business Manager) by adding a DNS TXT record or uploading an HTML file to the site's root. The screens change, so follow Meta's help article About Domain Verification in Meta Business Suite for the current steps. You cannot verify a vendor's shared domain, one more reason to prefer your own subdomain.
Choosing between the three fixes
| Fix | Works when | Main limit |
|---|---|---|
| fbclid in the checkout link | You can add the pixel to the checkout and it keeps query parameters | Lost when the visitor returns without the decorated link |
| Checkout on your own subdomain | Your cart tool supports a custom domain | Depends on the vendor and does not help hosted payment pages |
| Server-side Purchase | The order can carry custom values and the tool sends a webhook | Needs a server or automation step and correct deduplication |
The fixes combine well: a checkout on your own subdomain for the pixel, plus a server-side Purchase with the same event ID for browsers that block it.
How to test the funnel
- 1In Events Manager, select your pixel (dataset) and open the Test Events tab. For server events, copy the test code and send it as test_event_code, then remove it before sending live traffic, as Meta instructs.
- 2Open your landing page with a made-up click ID appended, such as ?fbclid=TestClick123.
- 3Click through to the checkout exactly as a buyer would and place a test order using the cart tool's test mode.
- 4Open the Purchase in Test Events and check the fbc value: it should start with fb, carry a 13-digit timestamp and end with TestClick123, with the same capitals. If the browser event does not show fbc, check the server event, which lists the fbc you sent.
- 5If the order arrives from both the pixel and the server, confirm both carry the same event ID. Two different IDs mean Meta can count two purchases.
Our checklist for testing Meta Pixel and Conversions API events covers the rest of the checks, including match quality.
EndFrame's snippet stores fbclid and other query parameters with each visit and forwards conversions to the Meta Conversions API from the server with an event ID. It follows the same rule as the pixel: it only sees pages where it is installed, so a checkout on a second domain needs the snippet there too.
Frequently asked questions
Does the Meta Pixel have a setting like GA4's cross-domain measurement?
No. GA4 lets you list your domains so the Google tag adds a _gl parameter to links between them. Meta documents no such setting for the pixel. Its _fbc and _fbp values are ordinary first-party cookies, so carrying them from one domain to another is up to you, through the link, a shared root domain or your own server.
Will the Purchase still be reported if it arrives without fbc?
The event still reaches Meta, but without the click ID Meta has to match it using whatever else you send, such as hashed email and phone, IP address and user agent. That makes the connection to the specific ad click weaker, so some purchases that came from your ads may not be credited to them.
Which _fbp should the server event carry, the landing page's or the checkout's?
If a pixel on the checkout also sends the Purchase, use the checkout domain's _fbp. Meta's deduplication guide accepts a matching event name plus fbp as a backup to event_id, though only when the browser event arrives before the server event. If no pixel runs on the checkout, send the _fbp you captured on the landing page, unhashed and unchanged.
How long after the purchase can I send the server event?
Meta accepts an event_time up to seven days before the moment you send it. If any event in a request is older than that, Meta returns an error for the whole request and processes none of its events, so a webhook flow that retries failed orders days later should drop or split out the stale ones.
Sources
- 1.ClickID and the fbp and fbc Parameters - Meta for Developers
- 2.Server Event Parameters - Meta for Developers
- 3.Customer Information Parameters - Meta for Developers
- 4.Using the API - Conversions API - Meta for Developers
- 5.Set up cross-domain measurement - Analytics Help
- 6.Set-Cookie header - HTTP | MDN
Try EndFrame
Add a server-side path for your conversions.
EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.
No credit card required