Your store says you made the sale. Meta Ads Manager doesn't. If you run Meta ads, you've probably seen that gap, and it costs you twice: the ad gets no credit, and Meta keeps learning from an incomplete list of buyers.
The Meta Conversions API (CAPI) is how you close it. It sends conversions to Meta from your server instead of the visitor's browser, so a sale the pixel misses still reaches Meta, whether ad blockers or browser privacy limits stopped the pixel, or the purchase happened after the visit. Here's how it works, the five ways to set it up, and how to check that every sale counts once.
What is the Meta Conversions API?
The Meta Conversions API is how your server tells Meta "this person just bought something." Most people shorten it to CAPI.
The pixel is JavaScript in the visitor's browser. CAPI is a request your server sends to Meta's Graph API. Each event carries four things:
- What happened: an event name such as Purchase or Lead.
- When it happened: a Unix timestamp. Meta accepts website events up to 7 days old.
- Where it happened: the action source, such as website, app, phone_call or physical_store.
- Who did it: customer information such as email or phone, hashed with SHA-256, plus the browser's IP address, user agent and Meta's click cookies.
Meta uses the customer information to match the event to someone who saw or clicked your ad. Then it credits the ad and learns what kind of person buys, so it can find more of them.
What's the difference between the Meta pixel and the Conversions API?
The pixel reports what happens on the page. The Conversions API reports what your systems know, including sales that never touch the page.
![]()
| Meta pixel | Conversions API | |
|---|---|---|
| Where it runs | The visitor's browser | Your server, your store, or a tool's server |
| Ad blockers and browser privacy | Can stop it from loading or firing | Not affected, nothing loads in the browser |
| Events after the visit (renewals, CRM deals, phone orders) | Can't see them | Can send them |
| What gets sent | Whatever the script collects | The fields you choose |
| Setup | Paste a snippet | An integration, a server or a tool |
Do you need both? Yes. Meta's best practices say to use the Conversions API in addition to the pixel and send the same events through both. Meta calls this a redundant setup. The pixel catches browser signals like page views, the server catches what the browser drops, and deduplication makes sure a sale seen by both counts once.
Which events should you send to the Conversions API?
Send the events your ads optimize for, with as much matching data as you can. Most businesses need only a few of Meta's standard events:
- Purchase: any paid order. Include value and currency.
- Lead: a form fill, a demo request, or a lead your CRM marks as qualified.
- CompleteRegistration: a sign-up.
- StartTrial and Subscribe: for SaaS, the trial start and the first paid conversion.
- ViewContent, AddToCart, InitiateCheckout, Order: optional for stores, for example if you run a Shopify or WooCommerce store, to give Meta earlier signals.
The sales that matter most are often the ones that happen after the visit: a trial that converts in week two, a deal your sales team closes, a renewal billed in Stripe. The pixel can't see any of them. The Conversions API can, as long as your backend sends them.
What customer information should you include?
Meta matches events to people with customer information parameters. Personal fields must be normalized and hashed with SHA-256. Technical fields must be sent as they are.
| What | Meta key | Hash it? | Normalize first |
|---|---|---|---|
| em | Yes | Trim spaces, lowercase | |
| Phone | ph | Yes | Digits only, with country code: 16505551212 |
| First and last name | fn, ln | Yes | Lowercase, no punctuation |
| City, state, zip, country | ct, st, zp, country | Yes | Lowercase. Two-letter state and country codes |
| Your own user id | external_id | Recommended | Keep it stable across browser and server |
| IP address and user agent | client_ip_address, client_user_agent | Never | As captured. The user agent is required for website events |
| Click id and browser id | fbc, fbp | Never | Read from the _fbc and _fbp cookies |
Two details trip people up:
- Website events need more. Meta requires event_source_url and client_user_agent on every website event.
- fbc comes from the ad click. When someone clicks a Meta ad, the landing URL carries an fbclid parameter. The fbc value is built from it as
fb.1.<timestamp in milliseconds>.<fbclid>(see Meta's fbp and fbc guide). If your server never sees that first page, it never gets the click id, and match quality drops.
How do you set up the Meta Conversions API? (5 ways)
There are five common ways to set up CAPI. The right one depends on where your sales happen and how many ad platforms you run.
| Option | Code needed | You host | Sends to | Best for |
|---|---|---|---|---|
| Partner integration | No | Nothing | Meta | Stores on a platform with a Meta integration |
| Conversions API Gateway | No, set up in Events Manager | A cloud account you own (AWS or Google Cloud) | Meta | Teams that want Meta's own no-code option |
| Server-side Google Tag Manager | No, but two containers to configure | A tagging server | Meta, plus a tag per other platform | Teams already working in Tag Manager |
| Direct API integration | Yes | Your backend | Meta, unless you build more | Engineering teams with custom checkout or CRM events |
| Zernio | No, one click or one line | Nothing | 20 destinations | Teams on several ad platforms, and products that send conversions for their customers |
1. Partner integration (Shopify, WooCommerce and others)
Many store platforms have a Meta integration that sends Conversions API events for you. On Shopify it's the Facebook & Instagram app. Its data sharing setting has three levels, Standard, Enhanced and Maximum, and only Enhanced and Maximum use the Conversions API.
- In Shopify, open the Facebook & Instagram app and connect your Meta business account.
- In its data sharing settings, choose Enhanced or Maximum.
- Place a test order and check it in Events Manager.
Limits: it only covers Meta, you get the events the integration chooses, and sales outside the store (a CRM deal, a subscription billed in Stripe) don't flow.
2. Conversions API Gateway
The Conversions API Gateway is a self-serve option in Events Manager that needs no code. It receives events from the browser and sends them to the Conversions API, next to your pixel. It runs in a cloud account your business owns, on AWS or Google Cloud.
- Start the Gateway setup from Events Manager.
- Connect the AWS or Google Cloud account it will run in.
- Confirm events arrive in the Test Events tool.
Limits: it only sends to Meta, and because it works from browser events, sales that never happen in the browser need another path.
3. Server-side Google Tag Manager
If your tags already live in Google Tag Manager, you can add a server container and send events to Meta from there. Meta has a guide for server-side GTM.
- Set up a web container and a server container in Tag Manager, and host the server container.
- Point your web GA4 tag at the tagging server, so a GA4 client in the server container receives the events.
- In the server container, add the Conversions API tag with your pixel ID, an access token and the action source set to website.
- Pass the same event ID your pixel uses, so the two dedupe.
Limits: you rent and maintain a server, each ad platform is another tag to configure, and consent and click ids are yours to handle.
4. Direct API integration
You can send events straight to Meta's Graph API from your backend. First get an access token: in Events Manager, choose your pixel, open Settings, and click Generate access token in the Conversions API section. Then post events to the events endpoint in batches of up to 1,000.
Limits: hashing, retries, token rotation, consent and click id capture are all yours. So is every other ad platform's API.
5. With Zernio's tracking tag and Conversions API
Zernio connects your ad accounts through its Ads API, so the tag and the destinations live in one place. Setup takes three steps:
- Connect your ad accounts, including your Meta ad account.
- Install the tracking tag: one click on a connected Shopify, WooCommerce, Wix or Webflow store or a Google Tag Manager container, or one line pasted into the page (install options). Served from a path on your own site, its cookies last 400 days, in Safari too.
- Forward events to Meta: add a forwarding rule for your Meta pixel, and for any of the 19 other destinations.
Sales that never touch the browser, such as a renewal or a phone order, go through POST /v1/events. Zernio joins them to the visit that brought the customer, and hashes personal fields with SHA-256 before they leave. Stripe, HubSpot and Salesforce can send them too: a paid charge, a won deal or a closed-won opportunity becomes a Purchase.
curl -X POST "https://zernio.com/api/v1/events" \
-H "Authorization: Bearer $ZERNIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"profileId": "66a1f0c2a4b9d3e8f1a2b3c4",
"destinations": [{ "accountId": "66b2e19d8c3f5a7e9d0b1c2d", "destinationId": "1729525464415281" }],
"events": [{
"eventName": "Lead",
"eventTime": 1796740200,
"eventId": "deal_8812",
"value": 42.5,
"currency": "USD",
"actionSource": "crm",
"user": { "email": "customer@example.com", "phone": "+14155551234", "country": "US" }
}]
}'
Or let an AI agent do it. A coding agent such as Claude or Codex, connected to the Zernio MCP server, can scan the site, install the tag, set up forwarding, verify the events arrive and rescan. The full Meta field mapping is in the platforms docs.
How do you stop the pixel and CAPI from counting a sale twice?
Give the browser event and the server event the same event name and the same event ID. Meta's deduplication rules say that when it finds a match within 48 hours, it keeps only the first one. If the two arrive within 5 minutes of each other, Meta favors the browser event.

In the pixel, the ID goes in the fourth argument:
fbq('track', 'Purchase', { value: 129.99, currency: 'USD' }, { eventID: 'order_1042' });
On the server, send the same value as event_id, with event_name set to Purchase.
A few rules make this work in practice:
- Use an ID both sides already know, such as the order ID or lead ID. A random ID generated separately in each place will never match.
- Match the event name exactly. Purchase and purchase are different events.
- The fallback is external_id or fbp with the same event name. Meta notes it mostly works when the browser event arrives first, so treat it as a backup.
When Zernio installs your Meta pixel on a Shopify store, the purchase event ID is shopify_order_{orderId}. Send the server-side Purchase with that same ID and Meta dedupes it.
How do you check the Conversions API is working?
Check four things, in this order.
- Send a test event. In Events Manager, go to Data Sources, pick your pixel and open Test Events. Copy the test code, send it as
test_event_code, and watch the event arrive. Remove the code before going live. - Read Event Match Quality. Events Manager scores server events out of 10 on how well their customer information can be matched. Meta's verification guide suggests aiming for 6.0 or higher. The score covers web events only.
- Check the deduplication rate. In Events Manager, open an event's details and its Event Deduplication tab. It shows the share of events deduplicated from each source.
- Compare against your own numbers. Count yesterday's orders or sign-ups in your store or database, and compare that with the Purchase or Lead count Meta received. A big gap means events are leaking.
Zernio can watch this for you. The free Conversion Leak Report reads your site's tracking without changing anything, and can rescan it every day and email you when tracking breaks. Once events flow, GET /v1/events/accuracy shows what was sent, accepted and failed per destination. For store orders and Stripe payments, a destination whose accuracy falls under 95% sends an alert, at most once a day.
Common Meta CAPI problems and fixes
| Problem | Likely cause | Fix |
|---|---|---|
| Purchases counted twice | The pixel and server send different event IDs, or none | Send the same event_name and event_id from both |
| Low Event Match Quality | Only an email, or no IP address and user agent | Add phone, name, external_id, IP, user agent, fbc and fbp |
| Missing fbc and fbp | The server never saw the fbclid or the cookies | Capture fbclid on the landing page and forward the _fbc and _fbp cookies |
| Whole batch rejected | One event_time is more than 7 days old | Send events within 7 days. Offline store sales have a 62 day window |
| Hashed the wrong fields | IP, user agent, fbc or fbp were hashed | Hash only personal fields, and normalize them first |
| Website events missing data | No event_source_url or user agent | Include both on every website event |
| Events sent without consent | The server path ignores the cookie banner | Gate server events on the same consent signal as the pixel |
Can you send the same events to Google, TikTok and LinkedIn?
Yes. Google Ads, TikTok, LinkedIn and others have their own server-side conversion APIs, each with its own fields and click IDs, such as gclid for Google Ads and li_fat_id for LinkedIn. Building each one is the same project as Meta again.
With Zernio you send one event and pick where it goes. Zernio's Conversions API lists 20 destinations:
- Ad networks: Meta, Google Ads, LinkedIn, TikTok, Pinterest, X, OpenAI, Reddit, Microsoft, Amazon, Snapchat, The Trade Desk, Taboola and Outbrain.
- Analytics: Google Analytics.
- Email, SMS and affiliates: Klaviyo, Attentive, Mailchimp, Impact and Awin.

Building for many advertisers? Send CAPI events for your users
If you run a SaaS product, an AI agent product or an agency where each customer runs their own ads, you need each customer's events to land in their own ad account. Meta covers this case in its guide to setting up the Conversions API as a platform.
In Zernio, each of your customers gets their own profile and connects their own ad accounts to it. Forwarding rules are set per profile, so each customer's events go only to their own destinations. One integration on your side covers every customer. See the Conversions API docs for the setup.
Meta Conversions API FAQ
Is the Meta Conversions API free?
Meta's documentation doesn't list a fee for sending events. What costs money is the setup: hosting, developer time or a tool. In Zernio, conversions from your store, payments, CRM or the API have no per-conversion fee and come with Ads, which is billed per active ad. Website events from the tag are free up to 100,000 a month, then $10 per million. See the pricing page.
Do I still need the Meta pixel?
Yes. Meta recommends running the pixel and the Conversions API together and sending the same events through both. Deduplication by event ID keeps each sale counted once.
What is a good Event Match Quality score?
Meta suggests aiming for 6.0 or higher out of 10. Adding phone, name, external_id, IP address, user agent, fbc and fbp usually raises it.
How old can a Conversions API event be?
Up to 7 days for website events. If one event in a request is older, Meta rejects the whole request. Offline sales from a physical store can be uploaded within 62 days.
Does the Conversions API work with Shopify?
Yes. Shopify's Facebook & Instagram app sends Conversions API events when data sharing is set to Enhanced or Maximum. You can also connect the Shopify store to Zernio in one click and send the same events to Meta and other destinations.
Can an AI agent set up the Conversions API?
Yes. A coding agent such as Claude or Codex, connected to the Zernio MCP server, can scan the site, install the tag, set up forwarding, verify the events arrive and rescan.
Send every sale back to its Meta ad
Connect your Meta ad account and your site in Zernio, and every sale goes back to the Meta ad that brought it. Start with the Conversions API.