Meta Conversions API for WooCommerce: a practical setup guide

If Ads Manager shows fewer purchases than WooCommerce, or Events Manager keeps suggesting you "set up the Conversions API", this guide is for you. It covers what the Conversions API does, why the Pixel alone misses sales, how to avoid double counting, and how to set it up on a WooCommerce store.

What the Conversions API is

The Meta Pixel is JavaScript in the visitor's browser. The Conversions API (CAPI) is the server version: your store sends the same events directly from your server to Meta's Graph API. Meta recommends running both together. The Pixel catches browsing behaviour, and the server makes sure the events that matter, above all Purchase, arrive even when the browser can't send them.

Why the Pixel alone misses purchases

  • Ad blockers and privacy browsers block connect.facebook.net, so the Pixel never loads.
  • iOS and Safari limits shorten cookie life, so returning buyers are harder to match to the ad they clicked.
  • Payment redirects: a buyer who pays on PayPal or Klarna and doesn't come back to your thank-you page never triggers the Pixel Purchase.
  • Custom thank-you pages without the Pixel lose every purchase.

Each missing purchase makes your campaigns look weaker than they are and gives Meta's optimisation less data to learn from.

Deduplication: Pixel and server without double counting

When the browser and the server both send the same Purchase, Meta keeps one if both events have the same event_name and the same event_id. On WooCommerce, an ID based on the order number (for example purchase_1048) is ideal: the thank-you page and the server can both work it out without talking to each other. Random IDs that differ between browser and server are the most common cause of doubled purchases. If Events Manager already shows a warning, see how to fix "Purchase event missing deduplication parameter".

Event Match Quality: what Meta needs to match a sale

Meta scores each server event from 0 to 10 on how well it can match it to a person. Higher scores mean better attribution and cheaper results. The fields that matter most:

  • Email and phone, normalised (lowercase email, phone with country code) and SHA-256 hashed before sending.
  • First and last name, city, state, postcode, country, also hashed.
  • fbp and fbc: the browser ID and click ID from the _fbp and _fbc cookies. Capture them at checkout and save them on the order. The server can't read them later.
  • Client IP address and user agent from the checkout request, not from your server.
  • external_id: a stable, hashed customer ID.

Never send unhashed personal data, and never put the access token in browser code. It belongs on your server only.

More detail: how to improve Event Match Quality on WooCommerce.

Setting it up on WooCommerce

  1. Find your dataset ID. In Meta Events Manager, open Data sources and select your Pixel (now called a dataset). Copy the ID.
  2. Generate an access token. In the dataset's Settings, under Conversions API, click Generate access token. Store it somewhere private.
  3. Choose how to send. Three common routes:
    • Meta for WooCommerce (free, official): good for catalog sync. Its CAPI coverage is basic, and you get no per-order record of what was sent.
    • Server-side Google Tag Manager: very flexible, but needs a tagging server (usually a monthly cost) and someone comfortable with GTM.
    • A WooCommerce tracking plugin with CAPI built in: sends events from WordPress itself, with no extra server.
  4. Send Purchase on payment, not on page load. Trigger the server Purchase when WooCommerce confirms payment, so redirects and closed tabs don't matter.
  5. Test with a test event code. In Events Manager open Test events, copy the code, add it to your setup, place an order and confirm you see both a Browser and a Server Purchase marked as deduplicated. Remove the test code afterwards.
  6. Check again after 48 hours. Event Match Quality and the "Diagnostics" tab need a couple of days of real traffic to update.
Consent: in the UK and EU, Meta events usually need marketing consent. Record the buyer's choice at checkout and skip the server Purchase for buyers who refused. Sending it anyway is a legal risk for your store.

Quick checklist

  • One Pixel on the site, not two (check your theme, Google Tag Manager and other plugins).
  • Browser and server Purchase share the same order-based event_id.
  • fbp, fbc, IP and user agent are captured at checkout and sent with the server event.
  • The value and currency match the order total, including multi-currency stores.
  • Refunds don't remove Purchases in Meta. Exclude refunded orders in your reporting instead.

The same problem affects Google Analytics. See why WooCommerce orders go missing in GA4 for the GA4 side. Already using Meta for WooCommerce and seeing Browser-only events? See why the Conversions API is not working in Meta for WooCommerce. If your Purchase event is not firing at all, use the Meta Purchase checklist, or read about PayPal purchases missing from the pixel.

Set up the Conversions API in about 10 minutes

UnifiedTrackingHub sends Purchase to Meta from your server on payment, with order-based deduplication, hashed customer data, fbp/fbc captured at checkout and consent support. Every order gets a note showing what was sent, with a one-click resend.

See pricing Read the setup guide

See pricing – from $79 a year