Connecting Magento to Meta Conversions API
Magento is self-hosted and endlessly customisable, which means every installation is different and full-page caching is always in the way. Meta's pixel loses a large share of conversions to Safari, ad blockers and iOS, and the Conversions API exists because of it. The join between them succeeds or fails on one thing: whether the fbc and fbp values reaches the Magento order before the conversion happens, because Meta can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Magento to Meta: one event_id from the order increment_id
Send Magento purchases to Meta from the success-page pixel and a server event from a sales_order_place_after observer, both using the increment_id as event_id. Check whether Meta's Adobe Commerce extension already sends server events. Read fbclid in the browser, since Varnish may strip it, write _fbc and copy it onto the quote. Compare ROAS with net revenue.
On Magento the browser pixel's Purchase usually fires from the checkout success page, and the server event from an observer on sales_order_place_after. Those two only deduplicate if they share an event_id. Use the order's increment_id, the number the customer sees, in both, rather than the internal entity_id in one and the increment_id in the other, which is the mismatch that turns up most often in custom builds.
Check whether Meta's extension for Adobe Commerce is installed. If it is, it may already send server events, and a second Conversions API path from a custom observer doubles every order unless both use the same event_id, or one is switched off.
The fbclid is the other Magento trap. Magento's Varnish configuration strips common marketing parameters from the URL before the request reaches PHP, and depending on your VCL version that can include fbclid, so a server-side capture at landing never sees it. Read fbclid in the browser, write _fbc from there, and copy it onto the quote so the observer can attach it to the order. Credit memos cannot be sent back to Meta as reversals, so read Meta ROAS against Magento's net order value, not gross.
Magento → Meta · what breaks
Why this join usually fails — Magento → Meta
- 01
The fbc and fbp values never reaches Magento
Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.
- 02
Full-page cache between the visitor and your code
The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.
- 03
Double counting from broken deduplication
Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.
- 04
Nothing reconciles afterwards
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
Magento → Meta · the fix
What working looks like — Magento → Meta
The fbc and fbp values on every order
Conversions arriving in Meta
Events appear in Events Manager with an Event Match Quality score, deduplicated against the pixel, and become usable for optimization and attribution.
Reconciled against the source
Magento → Meta · architecture
How Magento and Meta actually connect
- 1
Magento holds the truth
You own the database, so the truth is as good as the query. Pin down which order statuses count as revenue — processing, complete, or both — because that choice moves the number substantially.
- 2
Meta Conversions API needs a click to match
Meta matches server events to people using whatever identifiers you send, hashed with SHA-256 where required. There is no single mandatory key, which is why quality varies so much between implementations — a poorly matched event is accepted, reported, and worth much less than it appears.
- 3
The identifier is the bridge
The fbc and fbp values, captured at the visit and carried into the Magento order.
- 4
The event source decides reliability
Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
- 5
Deduplication at the destination
Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.
Magento → Meta · normal or broken
Working vs. broken, side by side — Magento → Meta
Normal, not a fault
The fbc and fbp values present on the order
Sent from the Magento order placement observer
Deduplicated correctly
Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.
Reconciles with the source
Actually broken
The fbc and fbp values missing on most records
Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.
Sent from the browser
The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.
Counted twice, or not at all
Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.
Nobody has reconciled it
Magento → Meta · diagnose
Diagnostic order — Magento → Meta
- 01
Count orders carrying the fbc and fbp values
- 02
Follow one real conversion end to end
- 03
Place a test order as an anonymous visitor through cache
Not as an admin, which bypasses it. If the order data is missing on the cached path, caching is your cause.
- 04
Read Event Match Quality and the deduplication indicator
In Events Manager, open the event and check both. A low match quality means weak identifiers; a missing deduplication indicator means your event_id pairing is broken.
- 05
Read the match rate, not the success message
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
Magento → Meta · prove
How it gets proven — Magento → Meta
Source of truth
Magento's sales order records in your own database, for the same window and order status set.
- The fbc and fbp values confirmed present on a live order.
- Deduplication confirmed in Events Manager on a real purchase, with the browser and server events visibly paired rather than counted twice.
- Order data confirmed populated on an order placed through a fully warmed cache.
Magento → Meta · free audit
What we check in the free audit
- Count orders carrying the fbc and fbp values
- Follow one real conversion end to end
- Place a test order as an anonymous visitor through cache
- Read Event Match Quality and the deduplication indicator
- Read the match rate, not the success message
Checked against
Magento's sales order records in your own database, for the same window and order status set.
Free30 minutesNo obligation
Magento → Meta · when not to buy
When you don't need this — Magento → Meta
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the fbc and fbp values.
- If your Magento build has heavy customisation by another team, scope their availability first — the build is usually blocked there.
- If you are not running Meta ads at meaningful spend, the Conversions API is effort without payoff. It earns its cost when the optimization signal is worth improving.
Magento → Meta · what we deliver
What gets built — Magento → Meta
Identifier capture into Magento
Capture the identifier and persist it as order data through an observer on order placement, server-side, so it never depends on what the cache served.
Event source: the Magento order placement observer
Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
Dispatch to Meta
Server-side events to the Conversions API with the event_id matched to the pixel, action_source set correctly, and customer data hashed before it leaves your infrastructure.
Reversals where they exist
Credit memos are recorded against the original order and should reduce the reported figure.
Written guarantee
95%+ tracking accuracy
Measured against Magento's sales order records in your own database, for the same window and order status set.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Magento → Meta questions, answered
Usually two senders: the browser pixel plus a server path, from an extension or a custom observer, without a shared event_id. Use the order increment_id as event_id in both, or disable one.
It can. The VCL may remove fbclid from the request before Magento sees it, so read fbclid in the browser rather than in PHP; check your VCL for the exact list.
Almost always because the fbc and fbp values never reached the Magento order. Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one. Measure coverage before debugging the dispatch.
Two things. The _fbc cookie, derived from the fbclid parameter on the landing URL in the format fb.1.<timestamp>.<fbclid>, is the click identifier. The _fbp cookie is the browser identifier. Beyond those, Meta matches on hashed customer information — email, phone, name, city, country — and every additional field raises the Event Match Quality score. Unlike Google, Meta does not need a click ID at all if the customer data is good, but match quality drops noticeably without it.
The Magento order placement observer. Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
More on Magento → Meta
- Meta · Lead → booked callHow to track lead to booked call for Meta Ads
- Meta · Booked call → closed wonHow to track booked call to closed won for Meta Ads
- Meta · Free trial → paidHow to track free trial to paid for Meta Ads
RELATED GUIDES
Where Magento → Meta fits in the rest of your tracking
- Meta · Jewelry ecommerceMeta Ads conversion tracking for jewelry ecommerce brands
- Meta · Furniture ecommerceMeta Ads conversion tracking for furniture ecommerce brands
- Meta × Ecommerce OrdersHow to reconcile Meta Ads against your store's order table
- Meta · Add to cart → purchaseHow to track add to cart to purchase for Meta Ads
- Shopify → MetaConnecting Shopify to Meta Conversions API
- Magento → Google AdsConnecting Magento to Google Ads
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- OpenCart → MetaConnecting OpenCart to Meta Conversions API
Free · 30 min
Get Magento and Meta joined properly
Free30 minutesNo obligation
