The Meta Conversions API (CAPI) is Meta's server-side API: your server sends web, app and offline events straight to Meta, without passing through the visitor's browser. Meta recommends running it next to the Meta Pixel, both sending the same events with a shared event_id, so ad blockers and cookie limits stop fewer conversions and each one still counts once.
Many people still call it the Facebook Conversions API. The name changed; the endpoint and the logic did not. This guide covers what CAPI does, the three ways to set it up, deduplication with the Pixel, consent, and what to watch once it runs.
What the Conversions API does
The Meta Pixel is a script in the page. It sends events from the visitor's browser, so anything that stops the browser stops the event: an ad blocker, Safari's Intelligent Tracking Prevention, a consent banner, a tab closed before the request left.
The Conversions API sends events from a server. Your backend, a Gateway or a partner platform calls Meta's API directly, with what your systems know about the conversion: the order, its value, the hashed email of the customer. The browser is not in the path, so the browser cannot lose it.
That changes two things for a paid media team:
- More conversions reach Meta. Purchases and leads blocked in the browser still arrive from the server.
- Better matching. The server sends hashed email, phone and name, which raises the Event Match Quality score Meta uses to tie a conversion to an account. Bidding learns only from the conversions Meta can match.
It also reaches events the Pixel never sees: a deal closed by phone, an in-store purchase, a trial that converts to paid after thirty days, a renewal.
Pixel vs Conversions API vs CAPI Gateway
The Gateway is not a third tracking method. It is a way to run the Conversions API without writing the integration: Meta's software, hosted in a cloud account you control, that receives the Pixel's events and forwards them from the server.
| Meta Pixel | Conversions API (direct or partner) | Conversions API Gateway | |
|---|---|---|---|
| Runs | In the visitor's browser | On your server, or in a partner's platform | In your cloud account (for example AWS) |
| Sends | What the browser sees | What your systems know, including offline and CRM events | The Pixel's web events, sent again from the server |
| Exposed to | Ad blockers, ITP, cookie limits, slow pages | Your own outages and bugs | Your hosting, and whatever stops the Pixel first |
| Identifiers | fbp, fbc cookies, browser context | Hashed email, phone, name, plus fbp and fbc if you forward them | What the Pixel collected |
| Setup | One snippet | A partner connection, or developer work | Low code, needs cloud access |
| Cost | Free | Free API; partner plan or developer time | Free API; cloud hosting |
| Other ad platforms | No | Yes, if you build them | No, Meta only |
| Debugging | Meta Pixel Helper, network tab | Events Manager Test Events, server logs | Events Manager, the Gateway's own console |
In one line: the Pixel and the Conversions API are two paths for the same events. The Gateway is one way to build the second path; a partner integration and a direct build are the others.
The three ways to set it up
All three start in Events Manager: open the dataset (what used to be called the Pixel), go to Settings, and choose a Conversions API method. Which one fits depends on how custom your events are and who will maintain it.
Partner integrations
If the site runs on a platform like Shopify or the events already go through a customer data platform like Segment, there is probably a built-in Conversions API integration. You connect the Meta account, pick the events, and the partner sends them.
- Good for: teams without developers, standard e-commerce events.
- Limit: you get the events and parameters the partner supports, nothing else.
The Conversions API Gateway
The Gateway runs in a cloud account you control, such as AWS, and forwards the Pixel's events from the server with little code. It needs someone comfortable with cloud setup, and it covers Meta only: Google Ads or TikTok need their own server-side path.
- Good for: recovering web events lost in the browser without a custom build.
- Limit: it mirrors the Pixel, so it does not add offline or CRM events.
Direct integration
Your developers call the API from your backend. You decide which events, which parameters, when they are sent and how they are formatted, which is what offline conversions, delayed conversions and subscription events need.
- Good for: custom events, offline and CRM stages, teams with engineering time.
- Limit: you build it and you maintain it.
A common variant is a server-side Google Tag Manager (sGTM) container: the web container sends events to your server container, and a Meta tag there calls the Conversions API. One server container can feed Meta, Google Ads and TikTok at once; the server-side tagging guide for Meta CAPI and other platforms walks through it.
Plan the events before the code
Whichever path you pick, the browser and the server have to send the same events with the same names. Write that down first, in a tracking plan that marketing and development both work from.
- Use Meta's standard events where they fit:
ViewContent,AddToCart,InitiateCheckout,Purchase,Lead. Meta's delivery already understands them. - Name custom events once. A SaaS might add
TrialStarted.add_to_cartin the browser andAddedToCarton the server are two different events to Meta, and deduplication breaks. - List the customer parameters each event carries: email (
em), phone (ph), first and last name (fn,ln), plusfbpandfbc. Personal data must be normalized and SHA-256 hashed before it is sent.
The spec goes into the dataLayer, where the tag manager and the server both read it.
Deduplication between the Pixel and CAPI
When the Pixel and the server both send the same purchase, Meta needs to know it is one purchase.
Without that, Purchase and Lead are counted twice, and the reported ROAS and the bidding follow the inflated number.
Meta matches the two copies on two fields:
event_namemust be identical on both sides. A PixelPurchaseonly deduplicates against a serverPurchase.event_idmust be the same value on both sides and unique to that conversion.
When both arrive with the same pair, Meta keeps one and drops the other. When only the server event arrives, because the browser one was blocked, it counts on its own: that is the conversion the Conversions API recovered.
Generating the event ID
Generate the event_id once, at the moment the event happens, and pass that same value to the Pixel tag and to the server payload.
Two systems generating their own IDs is the most common way deduplication fails.
A readable pattern combines the event, the order and a timestamp:
- Order ID:
ORD-12345 - Timestamp:
1672531200 event_id:purchase_ORD-12345_1672531200
Push it into the dataLayer with the purchase; the tag manager (for example Google Tag Manager) reads it for the Pixel tag and for the request to the server. When the numbers still double, the CAPI deduplication guide covers the diagnosis.
Consent and personal data
Server-side does not mean outside consent. If a visitor declines, the browser should not load Meta's tags, and the server should not forward the same events as if nothing changed.
A workable model:
- Read the consent state from the consent management platform.
- Map each Meta tag and server destination to a consent category.
- Block or allow in the web container.
- Apply the same decision in the server-side forwarding.
- Log it, so QA can check that a "no" stays a "no" on both paths.
The other risk is personal data that should never travel: an email in a URL parameter, a form value scraped into a custom parameter, a raw field forwarded by a server transformation.
A missing PageView loses data; an unhashed email creates exposure.
The article on privacy and compliance in tracking implementations covers turning the policy into controls.
Keep it working after launch
A Conversions API setup breaks quietly.
A checkout change drops the event_id from the dataLayer, a server deploy changes a field, a consent update stops the server path, and Events Manager keeps showing events, just fewer, or twice as many.
The review by hand is the Meta Conversions API audit, with its checklist, and the CAPI validation guide for the checks in Meta's own tools.
Trackingplan does it continuously. It works where the data is produced: the hit, the dataLayer, the pixel, the CAPI payload, the consent state, the GTM release. One tag, SDK or server-side hook, and it learns the events and parameters your Pixel and your server actually send, with no plan to write first. On a Meta setup it watches:
- Pixel vs CAPI vs GA4: the same purchase, counted once, with the same value.
- Click IDs and match keys:
fbclid,event_id, email hashes, and how many conversions lose them. - Values: wrong totals, inconsistent tax or shipping, the wrong currency.
- Personal data and consent: emails, names and IDs in parameters or URLs, and tags firing without permission.
Each gap goes to whoever owns the tag. The agent names a cause only when two independent pieces of evidence agree. Rethink's team sees a break "a couple of hours after a release", not at the end of the month. The guide to automating event validation for server-side tagging covers the setup.
Go deeper
- Meta Conversions API audit: the step-by-step playbook: the full review of a setup that already runs.
- Meta CAPI validation: step-by-step guide: the checks that prove the setup works.
- CAPI deduplication issues: diagnose, fix, prevent: when the Pixel and the server count the same conversion twice.
- Meta event match quality: how to raise your EMQ score: the identifiers Meta needs and how to send them.
- Meta Pixel and CAPI debugging tools compared: which tool answers which question.
- The Meta Pixel Helper: the browser side of the same setup.
Frequently asked questions
What is the Meta Conversions API?
It is Meta's server-side API for conversion events. Your server, a Gateway or a partner platform sends web, app and offline events straight to Meta, so ad blockers and browser cookie limits do not stop them. It used to be called the Facebook Conversions API.
What is the difference between the Meta Pixel and the Conversions API?
The Pixel runs in the visitor's browser and sends what the browser sees. The Conversions API runs on a server and sends what your systems know, including purchases, leads and offline events the browser never sees. Meta recommends both, with a shared event_id so each conversion counts once.
Does the Conversions API replace the Meta Pixel?
No. Meta recommends a redundant setup: the Pixel and the Conversions API send the same events, and Meta keeps one copy of each. Dropping the Pixel loses the browser context the server does not have.
How do I set up the Conversions API in Meta?
In Events Manager, open your dataset (the Pixel), go to Settings and choose a setup method: a partner integration such as Shopify, the Conversions API Gateway, or a direct integration your developers build. Then send a shared event_id from the browser and the server, and check both in Test Events.
Is the Conversions API free?
Meta does not charge for the API. The cost is where it runs: a partner's plan, the cloud hosting for the Gateway or a server-side GTM container, or the developer time of a direct build.
Does the Conversions API bypass consent rules like GDPR?
No. It is a transmission path, not a consent loophole. You still need the visitor's consent before sending their personal data to Meta, and the server has to respect the same choice the browser does.
What is a good Event Match Quality score?
Event Match Quality is scored out of 10. Meta labels 6 and above good and 8 and above great; aim for 8 on purchases and leads. Hashed email and phone, plus the fbp and fbc identifiers, move it most.