What is Meta Conversions API (CAPI)? Measuring ad conversions when cookies are blocked

December 3, 2026

Updated:

Guide
What is Meta Conversions API (CAPI)? Measuring ad conversions when cookies are blocked

What is Meta Conversions API (CAPI)?

Meta Conversions API is a programming interface that lets businesses send conversion events (customers leaving information, booking appointments, making purchases) directly from their server, website platform, or CRM to Meta, instead of relying only on Meta Pixel running in the browser. According to the developer documentation at developers.facebook.com (read on 25/10/2026), server-sent events are processed the same way as Pixel events and are used for measurement, reporting, and ad optimization. When browsers block cookies or users install ad blockers, Pixel may miss events; CAPI helps send backup data from the server side. This post does not promise that CAPI will reduce your ad spending, does not provide numbers like "conversion increase by X percent," and is not legal advice. It explains how CAPI works, duplicate prevention using event_id, hashing customer information with SHA-256, Event Match Quality, the Test Events tool, privacy considerations, and how far OPCAIOS has built this out.

Diagram of Meta Conversions API: customer fills form or pays on website, server normalizes and SHA-256 hashes email, phone, name, attaches event_id, sends batch of events to Meta; Pixel in browser sends same event_id; Meta removes duplicates within 48 hours; verify using Test Events
Server sends hashed events, browser sends same event_id, Meta keeps one copy. Diagram: OPCAIOS.

Why do you need Conversions API when you already have Meta Pixel?

Conversions API is necessary because Meta Pixel runs in the browser, so Pixel depends on the browser allowing code to load and cookies to be stored. When browsers block third-party cookies, users turn on ad blockers, networks are unstable, or customers close the page before the code runs, events may not reach Meta. Some conversions don't even happen in the browser: customers make transfers hours later, orders get confirmed in the CRM, phone calls close deals. Meta's best practice page (read on 25/10/2026) recommends using Conversions API together with Meta Pixel, sending the same event through both channels, then deduplicating. This side-by-side approach is called redundancy setup: Pixel catches browser signals like the fbp cookie, while the server sends events that definitely happened like paid orders. CAPI does not replace user consent; CAPI only changes the path data takes.

How does Conversions API work?

Conversions API works through a POST request from your server to an address like graph.facebook.com/{version}/{PIXEL_ID}/events, with an access token. According to Meta's API usage guide (read on 25/10/2026), the main points are:

  1. Required parameters for every event: event_name, event_time, user_data, action_source. For website events, event_source_url is also required.
  2. action_source tells where the event happened, for example website, email, app, phone_call, chat, physical_store, system_generated.
  3. Each request can contain up to 1,000 events in the data array.
  4. event_time is in Unix seconds, going back at most 7 days. If any event in a request is older than 7 days, the entire request fails and no events are processed.
  5. Send as soon as possible; Meta recommends ideally within an hour after the event happens.

You can also turn on CAPI without writing code through Events Manager or your website platform's plugin if the platform supports it; writing code yourself works best when events live in your own database.

What is duplicate prevention with event_id?

Duplicate prevention (deduplication) is a mechanism to stop Meta from counting the same conversion twice when an event arrives from both Pixel and the server. According to Meta's deduplication page (read on 25/10/2026), the recommended way is to make the eventID of Pixel match the event_id of Conversions API, and the event name on both sides must be the same (for example both Purchase). In Pixel, eventID is passed in the fourth parameter of the fbq('track', ...) command. Meta only deduplicates when copies of the same event_id arrive within 48 hours from the first one. The second way is to use the same event name along with consistent fbp or external_id, but this only works when the browser event arrives first and cannot deduplicate events from a single source. Practical advice: create event_id from your order code or record ID, for example order:123, so that resending due to network errors is not counted as a new order.

How to hash customer information with SHA-256?

SHA-256 hashing is the step that transforms a customer's email, phone number, and name into a fixed-character string before sending to Meta, so raw data doesn't travel across the wire. According to Meta's customer information parameter page (read on 25/10/2026), required hashed fields include email (em), phone number (ph), first name (fn), last name (ln), date of birth, gender, city, state/province, postal code, and country; external_id is recommended to be hashed. Fields that should not be hashed include IP address, user agent, fbc, and fbp. Normalization before hashing determines whether matching succeeds:

Field Normalization before hashing
Email Trim leading and trailing whitespace, convert to lowercase
Phone number Remove symbols, letters, leading zero; always add country code (Vietnam is 84)
Last name, first name Lowercase, remove punctuation; Meta recommends using letters a-z

Hashing is not encryption: the same email always produces the same string, so the hashed string is still personal data that needs protection.

What are Event Match Quality and Test Events used for?

Event Match Quality (EMQ) is a score out of 10 that Meta assigns to each event, indicating how well the customer information sent along with the event can be matched to a Meta account. According to Meta's best practices page (read on 25/10/2026), sending additional parameters like email, IP address, name, and phone number helps increase matching, and EMQ is currently only available for web events. The "poor, fair, good" benchmarks that many blogs cite are not consistent with each other and we have not verified them on the official page, so please check directly in Events Manager.

Test Events is a tool in Events Manager to test an event before running it for real. You get the test code from the Test Events section of your data source, send it along with the test_event_code field and the data array, then watch the event appear. The documentation notes that events sent with a test code still go into Events Manager and are still used for targeting and measurement, so you must remove this field from data running for real.

What privacy and personal data law issues should be noted?

Sending customer email and phone number to Meta is processing and sharing personal data, even when hashed. This section is for reference only and is not legal advice. In Vietnam, the Personal Data Protection Law No. 91/2025/QH15 takes effect on 01/01/2026 according to summaries from Lawyer Vietnam newspaper and government agency introductory documents that we read through search on 25/10/2026; we have not cross-checked the original text. Some things worth doing:

  1. Clearly state in your privacy policy that your website shares conversion data with Meta for advertising purposes.
  2. Ask for consent before sending if the law or policy where your customer lives requires it; for customers in Europe, cookie and personal data regulations are stricter.
  3. Send only necessary fields, don't send form content, notes, or sensitive data.
  4. Keep access tokens on the server, don't put them in browser code.
  5. Respect opt-out requests: if a customer has unsubscribed, don't send further data.

See also legal checklist for solopreneur registration and 5 data security rules when using AI.

OPCAIOS's experience

OPCAIOS built a Meta Conversions API event-sending module in the marketing management section of the website, but has not confirmed it runs with real events: the project notes clearly state the module has never been tested with real access tokens. What has been built, according to the source code:

  1. Four event types: Lead (form submission, document download), CompleteRegistration (event registration), Schedule (booking a consultation), Purchase (paid order, with VND value).
  2. Sent from server in batches, a scheduled task picks up new records and sends up to 50 events per batch, with limited retries.
  3. event_id taken from type and record ID, so resending is not double-counted.
  4. SHA-256 hash email, phone number (normalized to 84 code), and name with diacritics removed; ad click code fbclid is sent as a UTM parameter to create fbc.
  5. No backfill of old data: the first time it's turned on only counts from that moment forward.
  6. Has a Test Events code field and a send test event button on the settings page; access tokens are stored encrypted on the server.

The website source code does not install Meta Pixel in the browser, so the deduplication part with Pixel has not been applied. We have no EMQ numbers or advertising results to share, and before turning it on you need to review the privacy policy again. The related customer source measurement section is in the post automatic sales funnel.

Frequently Asked Questions

Does Conversions API completely replace Meta Pixel?

I wouldn't call it a replacement. Meta's best practices page (read on 25/10/2026) recommends using Conversions API together with Pixel and sending the same event through both channels, then deduplicating using event_name and event_id. Pixel captures browser signals like fbp cookies and page view behavior, while the server can send reliable events like completed purchases. If a website doesn't use Pixel, CAPI can still work on its own, but you lose the browser signals and need to send enough customer information for Meta to match.

Can I use CAPI to get around users rejecting cookies?

I wouldn't use CAPI for that purpose. CAPI changes the data path from browser to server, but the obligation to ask for consent and notify about sharing personal data remains. If a user rejects sharing for ads, sending their hashed email to Meta through the server could still violate personal data laws and Meta's policy. Let the user's choice control both Pixel and CAPI. This is reference information, not legal advice.

Do I need to know how to code to set up Conversions API?

It's not mandatory. According to Meta's Conversions API page (read on 25/10/2026), if you already have Pixel, you can set up CAPI for website events from Events Manager without writing code; many website platforms also have it built in. You need to write code yourself or ask a programming agent when important events live in your own database, like confirmed transfers later, or when you want to control exactly which fields get sent.

Why does Events Manager report duplicate or missing events?

The usual reason is that event_id or event_name in Pixel and on the server don't match, or the two versions arrive more than 48 hours apart so Meta can't deduplicate. Missing events usually happen because event_time is older than 7 days, making the whole request rejected, or because you're missing event_source_url for website events, or your access token is wrong. Use Test Events to send each event type one at a time, read the API error responses, and log every send so you know which version went through.

Where do I start with Conversions API for a small business?

Start with your most important single event, usually Purchase or Lead, instead of sending everything. Spell it out in your privacy policy, normalize and hash email and phone number following the guidelines correctly, set event_id from your order code, test with Test Events, then turn it live and track EMQ in Events Manager. Once it's stable, add other events. If you want someone to guide you through building a measurement process along with AI tools, check out OPCAIOS's AI application training course.

Source: Meta for Developers documentation at developers.facebook.com (Conversions API, using the API, event deduplication, customer information parameters, server event parameters, best practices), read on 25/10/2026; Law 91/2025/QH15 via secondary summary, not yet cross-checked against the source text; EMQ milestones not yet verified; OPCAIOS's CAPI module not yet confirmed running with real events. Experience is from OPCAIOS.

Translated from Vietnamese with AI. Read the original.

Want to apply this in your business?

Book a free 30-minute call (Vietnam time, in English or Vietnamese).

Book a call