Omea Consent Pro · Guides

Meta Conversions API (CAPI) on WordPress, no sGTM

Set up the Meta Conversions API (Facebook CAPI) on WordPress in five minutes: paste a token; events are de-duplicated with the pixel and sent with consent.

Updated · Omea Consent Pro 1.0.8

On this page
  1. What is Meta CAPI?
  2. Set it up
  3. What Omea sends to Meta
  4. Consent
  5. Test mode
  6. Check that it works

The Meta Conversions API (CAPI) sends your conversions to Meta from your server, next to the browser pixel. Events that ad blockers or browser limits stop in the browser still reach Meta, and better-matched events improve how Meta optimises your ads.

Most WordPress guides route CAPI through a server-side GTM container on Stape. Omea Consent Pro sends it straight from WordPress – and only with the visitor’s consent.

What is Meta CAPI?

CAPI is short for the Conversions API – Meta’s server-to-server connection for website events (Meta’s documentation). It was launched as the Facebook Conversions API, so you’ll see both names; they’re the same thing. Instead of relying only on the pixel in the visitor’s browser, your server sends each conversion to Meta too. Meta recommends running both, matched by a shared event ID – see Meta Pixel vs Conversions API.

Set it up

  1. Switch on the Meta Pixel Under Omea Consent › Integrations, switch on Meta Pixel with your Pixel ID.
  2. Generate an access token In Meta Events Manager go to your pixel › Settings › Conversions API › Generate access token and copy it.
  3. Turn on the Conversions API In the Meta Pixel card, switch on Conversions API and paste the token into Access token. Click Save changes.
  4. Map your conversions Under Omea Consent › Conversions, give each conversion a Meta standard event – Lead, Purchase, CompleteRegistration and so on.
  5. Test with a test event code Optionally paste a Test event code from Events Manager › Test events, trigger a conversion and watch it arrive. Clear the code when you’re done – it’s for testing only.

The Pro setup asks for the token in its third step, Conversions API, so you may have done this already.

What Omea sends to Meta

What Details
Browser conversions Every conversion mapped to a Meta event, also sent from the server
Server-side events WooCommerce purchases with order contents and value, sign-ups
Event ID The same as the pixel’s eventID, so Meta counts each conversion once
Customer data Email, phone, first and last name, city, state, postcode, country and external ID – SHA-256 hashed
Browser data IP address, user agent, and the _fbp and _fbc cookies (or fbc built from a fbclid click ID)

Events are sent straight to Meta’s Graph API after the page has been delivered, so visitors don’t wait.

Omea checks the visitor’s Marketing consent on your server before every event. Without it, nothing is sent – not even from the server. That’s the key difference from setups that use server-side tracking to bypass the banner.

Test mode

While a Test event code is set, events show up in Meta’s Test events tool. Meta doesn’t drop them – they still flow into Events Manager and are used for targeting and ads measurement (Meta’s documentation) – so use a test code only while testing. The card shows a Test mode badge and a warning appears at the top of the Integrations screen. Clear the code when you’ve finished testing.

Check that it works

The Meta Pixel card shows Latest server events: each recent event with a Sent or Error badge. In Meta Events Manager you can see whether each event arrived from the browser, the server or both.

If events are missing, see Conversions API events missing. Wondering whether you need both pixel and API? Read Meta Pixel vs Conversions API.

Frequently asked questions

What is Meta CAPI?

CAPI is short for the Meta Conversions API: a server-to-server connection that sends your website’s conversions to Meta, next to the browser pixel. It used to be called the Facebook Conversions API – it’s the same thing.

Where do I find the Meta Conversions API access token?

In Meta Events Manager: your pixel › Settings › Conversions API › Generate access token. Paste it into Access token in the Meta Pixel card under Omea Consent › Integrations.

Do I need the Conversions API Gateway or server-side GTM?

Not with Omea Consent Pro. It sends Conversions API events straight from your WordPress server, so there’s no tagging server or gateway to set up or pay for.

Will the pixel and the Conversions API count a conversion twice?

No. Omea sends the same event ID from both, and Meta keeps one – see Meta Pixel vs Conversions API.

Does Meta CAPI work with WooCommerce?

Yes. WooCommerce purchases are sent from the server with the order contents and value, once per order.