Skip to main content
WooCommerce → MetaIntegration guide

Connecting WooCommerce to Meta Conversions API

WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. 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 WooCommerce 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

WooCommerce to Meta: Facebook for WooCommerce and the second pixel

Facebook for WooCommerce already pairs pixel and Conversions API event_ids; remove any second Meta plugin firing its own Purchase. Write fbc and fbp to order meta and send the server Purchase from woocommerce_payment_complete with hashed billing details. Send manually confirmed bank-transfer orders on status change, inside Meta's seven-day limit.

Facebook for WooCommerce, Meta's own plugin, sends both pixel and Conversions API events and pairs their event_id. The usual break is a second Meta plugin, often a pixel manager installed years earlier, firing its own Purchase with its own ID. Check Events Manager for two Purchase sources on the same order and remove one.

Caching is the other failure. A cached page can serve a stale pixel snippet, and an optimization plugin that delays JavaScript until user interaction can keep the pixel from firing on a thank-you page the customer closes quickly. Write fbc and fbp to order meta at checkout and send the server Purchase from woocommerce_payment_complete, so the Conversions API event no longer depends on the thank-you page running at all. Add hashed billing email, phone, name, city and country; WooCommerce collects all of them.

Bank transfer and cash-on-delivery orders may skip payment_complete and get marked paid by hand, so send those from the status change to your agreed paid status, with that time as event_time. Meta rejects web events older than seven days, which means a weekly batch of manually confirmed orders will partly fail. Refunds cannot be removed from Meta; track them from the refund hooks against the order instead.

WooCommerce → Meta · what breaks

Why this join usually fails — WooCommerce → Meta

  1. 01

    The fbc and fbp values never reaches WooCommerce

    WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.

  2. 02

    Caching and optimization plugins eat the tracking

    The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.

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

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

WooCommerce → Meta · the fix

What working looks like — WooCommerce → 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

WooCommerce → Meta · architecture

How WooCommerce and Meta actually connect

  1. 1

    WooCommerce holds the truth

    You own the database, so the truth is exactly as good as the query you write against it. Pin the status set first — whether processing, completed, or both count as a conversion changes the number by a lot and is the source of most arguments.

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

    The identifier is the bridge

    The fbc and fbp values, captured at the visit and carried into the WooCommerce order.

  4. 4

    The event source decides reliability

    Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.

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

WooCommerce → Meta · normal or broken

Working vs. broken, side by side — WooCommerce → Meta

Normal, not a fault

  • The fbc and fbp values present on the order

  • Sent from the woocommerce_payment_complete hook

  • 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

    WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.

  • Sent from the browser

    The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.

  • 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

WooCommerce → Meta · diagnose

Diagnostic order — WooCommerce → Meta

  1. 01

    Count orders carrying the fbc and fbp values

  2. 02

    Follow one real conversion end to end

  3. 03

    Check order meta on ten recent orders

    Directly in the database or with a meta viewer. Then disable page caching for the checkout path and see whether coverage changes — if it does, caching is your cause.

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

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

WooCommerce → Meta · prove

How it gets proven — WooCommerce → Meta

Source of truth

WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and 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 meta confirmed present on orders placed while full page caching was active.

WooCommerce → 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
  • Check order meta on ten recent orders
  • Read Event Match Quality and the deduplication indicator
  • Read the match rate, not the success message

Checked against

WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.

Get my free conversion tracking audit

Free30 minutesNo obligation

WooCommerce → Meta · when not to buy

When you don't need this — WooCommerce → Meta

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the fbc and fbp values.
  • If you run a small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
  • 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.

WooCommerce → Meta · what we deliver

What gets built — WooCommerce → Meta

  • Identifier capture into WooCommerce

    Capture the click identifier and persist it as order meta on the order object with a small snippet in the theme's functions or a purpose-built plugin. Order meta lives in your own database, so it survives caching, plugin conflicts and the customer's browser.

  • Event source: the woocommerce_payment_complete hook

    Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.

  • 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

    The refund hooks carry the order ID, so reversals are straightforward once the identifier is on the order.

Written guarantee

95%+ tracking accuracy

Measured against WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

WooCommerce → Meta questions, answered

Yes, it sends server events alongside the pixel. Check Events Manager for a second Purchase source from another plugin, which is the usual cause of double counting.

Free · 30 min

Get WooCommerce and Meta joined properly

Free30 minutesNo obligation