Conversion API
A conversion API is a server-to-server connection that sends conversion events, such as purchases or qualified leads, directly from your systems to an ad platform.
Also called: CAPI, Conversions API, Meta Conversions API, server-side conversion tracking, offline conversion import
A conversion API (often called CAPI, after Meta's Conversions API) is a server-to-server connection that sends conversion events from your backend, store or CRM directly to an ad platform. It exists because browser tracking keeps losing data to ad blockers, cookie limits and privacy features. Better data in means the bidding algorithm learns from more real outcomes and optimizes better.
How it works
Traditional tracking relies on a pixel: a script in the browser that fires when someone converts. If the script is blocked or the cookie is gone, the conversion is lost.
A conversion API sends the same event from your server instead. The flow:
- Capture the event on your backend: an order is paid, a lead is created, an opportunity hits a stage.
- Attach identifiers: hashed email and phone, IP address, user agent, and the platform's click ID or browser ID where you have it.
- Send it to the platform's endpoint, directly, through a tag manager server container, or through a customer data platform or native integration (Shopify, HubSpot and others offer them).
- Deduplicate. If the pixel also fired, both events share an event ID so the platform counts one conversion. This is deduplication applied to events.
- Match. The platform matches identifiers to user accounts. Meta reports this as event match quality.
The same approach powers offline conversions: sending events that happen days or months later, such as a qualified opportunity, back to the platform so it learns which clicks produced revenue. Most platforms have their own version, including Google's enhanced conversions and offline conversion imports and LinkedIn's Conversions API.
Example
Say a store gets 1,000 purchases a month and the pixel alone records 780 of them (assumption for the example), a 22% gap from blockers and browser limits. Meta optimizes on 780 signals and reports a CPA of $25,000 / 780 = $32.05.
After adding a conversion API with deduplication, Meta receives 950 matched purchases. Reported CPA becomes $25,000 / 950 = $26.32. Nothing about the ads changed. The platform simply sees more of reality, and with 22% more signal the algorithm has a better chance of finding buyers.
For a B2B example: a team sends "sales qualified opportunity" from its CRM through the API with the original click ID. It switches the campaign to optimize on that event once volume is steady, and the platform stops chasing cheap form fills that sales never accepts.
How to set it up
- Pick your events. Start with the conversions you bid on. Add deeper funnel events (qualified lead, opportunity, purchase value) next.
- Capture identifiers at the source. Store click IDs and browser IDs in hidden form fields or session data so you can send them later.
- Hash personal data as the platform requires before sending.
- Implement deduplication with a shared event ID between pixel and server.
- Monitor match quality and volume. Compare events sent with conversions recorded in your store or CRM every week.
- Respect consent. Only send data you have permission to use, and honor opt-outs.
This sits alongside server-side tracking and good event tracking. A webhook from your CRM or a workflow tool is often the simplest way to fire B2B offline events.
Common mistakes
- Running pixel and API without a shared event ID, which double counts conversions.
- Sending only an email address, which leaves match quality low.
- Forgetting to capture click IDs at form submission, so later offline events cannot be matched.
- Sending every micro-event and drowning the signal the algorithm needs.
- Ignoring consent rules when piping CRM data to ad platforms.
FAQ
Do I still need the pixel if I use a conversion API?
Usually yes. Platforms recommend running both, with a shared event ID so duplicate events are removed. The pixel captures browser context, while the server events fill gaps caused by ad blockers, cookie limits and browser restrictions.
What is event match quality?
It is Meta's score for how well the customer information you send can be matched to user accounts. Sending more hashed identifiers, such as email, phone, IP address, user agent and click ID, generally raises it. Better matching means more conversions attributed and better optimization.
Can a conversion API send B2B pipeline data?
Yes. B2B teams use it, or the platform's offline conversion import, to send events like qualified opportunity or closed-won from the CRM back to Meta, Google or LinkedIn. That lets bidding optimize toward pipeline rather than raw form fills.
Related
Used in these articles
- ArticleGoogle Consent Mode v2: What It Does, What It Costs You and How to Set It Up
- ArticleCookieless Tracking: What Actually Broke and How to Measure Now
- ArticleMeta Ads for Ecommerce: Structure, Signals, Creative and Budgets
- ArticlePinterest Ads for Ecommerce: How to Run Them and When They Pay Back
- ArticleReddit Ads: When They Work, How to Target and What to Spend
- ArticleServer-Side Tagging: How It Works, What It Costs and When It Pays