← Blog·Paid Media

Paid Media

Meta Conversions API: what it is and how to set it up

The Meta Conversions API sends conversions from your server to Meta. How it compares with the Pixel and the Gateway, how to set it up and deduplicate.

David PombarSwiss army knife at Trackingplan
9 min read · 2044 words

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.

Diagram: one purchase with event_id ord-123 goes to Meta by two paths, the Meta Pixel in the browser and the Conversions API from the server; Meta matches event_name and event_id and counts it once.
Two paths for the same event. If the browser copy is blocked, the server copy still counts.

That changes two things for a paid media team:

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 PixelConversions API (direct or partner)Conversions API Gateway
RunsIn the visitor's browserOn your server, or in a partner's platformIn your cloud account (for example AWS)
SendsWhat the browser seesWhat your systems know, including offline and CRM eventsThe Pixel's web events, sent again from the server
Exposed toAd blockers, ITP, cookie limits, slow pagesYour own outages and bugsYour hosting, and whatever stops the Pixel first
Identifiersfbp, fbc cookies, browser contextHashed email, phone, name, plus fbp and fbc if you forward themWhat the Pixel collected
SetupOne snippetA partner connection, or developer workLow code, needs cloud access
CostFreeFree API; partner plan or developer timeFree API; cloud hosting
Other ad platformsNoYes, if you build themNo, Meta only
DebuggingMeta Pixel Helper, network tabEvents Manager Test Events, server logsEvents 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.

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.

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.

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.

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:

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:

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.

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:

  1. Read the consent state from the consent management platform.
  2. Map each Meta tag and server destination to a consent category.
  3. Block or allow in the web container.
  4. Apply the same decision in the server-side forwarding.
  5. 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:

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

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.

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.

David PombarSwiss army knife at Trackingplan

Read more from David, a Senior Product Strategist with 18+ years in digital product development and an atypical error detection knack.

Read next

All Blog →

Trackingplan

See everything. Miss nothing.

Your implementations audited around the clock with real-time, real-user data. Real-time alerts about errors or changes in your data, campaigns, pixels, privacy and consent. Let AI flag issues before they cost you.