1. Home
  2. Meta Hub
  3. Tracking & Operations
  4. Conversions API Setup: A Complete Guide for Meta Advertisers
Tracking & Operations · 12 min read

Conversions API Setup: A Complete Guide for Meta Advertisers

By the Power Ads teamUpdated Nov 2026Checked against 24 sources2,420 words

To set up Meta's Conversions API (CAPI), connect a server, platform or gateway to the pixel ID your browser pixel already uses (Meta's newer docs call it a dataset ID), generate an access token in that pixel's Events Manager settings, and send each event with four required fields: event_name, event_time, action_source and user_data. Website events also need event_source_url and client_user_agent. Test with a test event code, deduplicate against the pixel with a shared event_id, then send live events in real time or within the hour. Below are five setup routes, the payload and hashing rules, and how CRM and offline sales use the same connection.

What the Conversions API does and why it runs alongside the pixel

The Conversions API is Meta's server-side route for marketing events. It connects your marketing data to the systems that target, optimize and measure your ads: website events, app events, business messaging events or offline conversions, sent from your server, a website platform, an app or a CRM. Server events are linked to a dataset ID, the same ID as your pixel, and are processed like pixel events.

It does not replace the pixel. Meta's best practices call for a redundant setup: keep the Meta Pixel, send the same events from your server too, and let Meta deduplicate each pair. The server adds events the browser never sees, including conversions that happen later or offline. Meta's implementation guide says a server-only setup should come only after a redundant or split setup is already running.

Moving events to a server does not move them outside the rules. Meta's implementation guide asks you to apply the same consent logic to Conversions API data as to pixel data, and the Meta Business Tools Terms cover what you send. The API changes how events reach Meta, not what you are allowed to collect or share.

Prerequisites: what to have ready before you start

Start with access rather than code. Confirm which business portfolio in Meta Business Suite owns the pixel, note the pixel ID, and find out who has developer privileges for that business, because Meta only shows the Generate access token link to those users. If a pixel already fires on the site, Meta's instruction is to use that same pixel ID for browser and server events instead of creating a new one.

Next, map what you will send. List the events that matter (Purchase, Lead, CompleteRegistration, InitiateCheckout and so on), the system that confirms each one (browser, backend, payment processor or CRM) and the customer fields you legitimately collect at that step. That map decides which setup route can deliver your events, and it keeps the browser and server versions of every event consistent. Before writing any code, check that you have:

  • Developer privileges in the business portfolio that owns the pixel
  • The pixel ID already firing in the browser, reused for server events
  • A verified domain for your website events' event_source_url
  • An event map: names, confirming systems, and purchase value and currency
  • A shared source of event_id values, such as order or lead IDs
  • Outbound firewall rules checked against Meta's published crawler IPs, if you restrict outgoing traffic
  • Written consent rules the server will follow exactly as the pixel does
Power AdsUnlimited Meta agency ad accounts on our corporate cards, with 24/7 support on Telegram and WhatsApp, for teams spending roughly $100,000+/mo. 4% per top-up, no setup fee. Apply for access →

Choosing a setup method: five routes Meta documents

Meta documents several ways to get server events flowing. They differ in who hosts the connection, how much code is involved and which events they can carry. Pick the lightest route that covers every event on your map; the pixel ID stays the same whichever you choose, so moving to a heavier route later does not mean changing your pixel.

The Conversions API Gateway needs no code but runs on cloud infrastructure your business owns. Setup starts in the pixel's Settings tab in Events Manager, under Set up with Conversions API Gateway. Meta's AWS setup guide puts stack creation at approximately 30 to 40 minutes and says data should take 5 minutes to 2 hours to appear. Meta states that the only cost is the associated cloud resource or partner fees, and it recommends a custom domain because it may help optimize data routing and may reduce costs.

The one-click and tag manager routes start from events the pixel or browser tag already sees. The Gateway mainly forwards pixel events, although Gateway version 1.6.0 and later can also accept offline, app and CRM events posted from your own server. CRM stages, phone sales, store purchases and other conversions confirmed after the visit must be sent by the system that records them, through a direct integration, a partner that supports those events or a server feeding the Gateway. A direct build gives the most control over what is shared, at the cost of developer time. The five routes:

  • Set up with Meta: for sites running the Meta Pixel, Meta offers a one-click connection for website events in Events Manager, with no code, configuration or setup fees
  • Partner integration: a website builder, tag manager or ad-tech platform sends events for you, typically using a system user token created in your business portfolio
  • Conversions API Gateway: a no-code service in a cloud account your business owns that forwards pixel events server-side with a deduplication key
  • Google Tag Manager server-side: Meta's own Conversions API Tag runs in your server container, fed by a GA4 client
  • Direct integration: your server posts events to the API itself or through Meta's Business SDK, which hashes customer fields automatically

Step 1: Generate the access token in Events Manager

For most builds the token comes from Events Manager: select the pixel, open the Settings tab, find the Conversions API section, click Generate access token under Set up manually and follow the pop-up instructions. Meta says this creates a Conversions API app and system user for you, with no App Review and no permissions to request. Tokens created since Graph API v12.0 work with all available API versions.

If you already run your own Meta app and system user, Meta documents a second route: in business settings, assign the pixel to that system user, select it and click Generate Token. Either way the token belongs to a system user of the business, not to one employee's login, so it survives staff changes. Record which app and system user each token belongs to.

Treat the token like a production password: keep it server-side in a secrets manager, never in browser code, client-side tags, repositories or chat. Anyone holding it can post events into your dataset, and if it is revoked, every request fails until a replacement is deployed, so document the owner and the replacement steps.

Step 2: Build the event payload

Events are sent as a POST request to the events edge of your pixel ID on the Graph API, with the access token attached and events in a data array. Meta says there is no specific rate limit for the Conversions API; the only limit is 1,000 events per request. Batch for throughput, but never hold events back just to fill a batch.

Timing rules are strict. event_time is a Unix timestamp in seconds (GMT) and, for most events, can be up to 7 days before the request. If any event in the batch is older, Meta returns an error for the entire request and processes none of it. Other invalid events also trigger an error, but valid events that carry an event_id are still accepted, and resending a corrected batch is safe because events already stored are dropped as duplicates.

Set action_source per event instead of hard-coding website everywhere. The allowed values are email, website, app, phone_call, chat, physical_store, system_generated, business_messaging and other, and by using the API you agree the value is accurate to the best of your knowledge. Every build should handle these fields:

  • event_name: the same name the pixel uses for that action, such as Purchase or Lead (required)
  • event_time: Unix seconds, no more than 7 days old for most events (required)
  • action_source: where the conversion actually happened (required)
  • user_data: at least one correctly formatted customer information parameter (required)
  • event_source_url and client_user_agent: required for website events, with the URL matching your verified domain
  • value and currency in custom_data: required for Purchase, with an ISO 4217 currency code
  • event_id and external_id: recommended by Meta on every event, for deduplication and matching

Step 3: Hash and format customer information

Normalize, then hash with SHA-256, these customer fields before they leave your server: email (em), phone (ph), first and last name (fn, ln), date of birth (db), gender (ge), city (ct), state (st), zip (zp) and country. Meta's systems are designed not to accept unhashed contact information; hashing external_id is recommended. Send client_ip_address, client_user_agent, fbp, fbc and lead_id unhashed. Meta's Business SDK hashes automatically; other clients must do it themselves.

Browser and click IDs are sent unhashed but need care. fbp comes from the _fbp cookie the pixel sets. fbc is the formatted click ID built from the fbclid parameter on ad clicks; it is case sensitive, so never alter it. Without an _fbc cookie, build fbc from the fbclid in the landing URL, using 1 as the subdomain index and the time you first saw it in milliseconds, and store it in a 90-day first-party cookie or your backend. Send both when available and refresh them, since they can change between sessions.

Normalize every field before hashing, because a hash of a badly formatted email still looks valid; it simply matches no one. Meta also treats an event as invalid when its customer information is limited to weak combinations, such as only date of birth plus user agent, or only a first or last name plus gender. Meta's main formatting rules:

  • Email: trim leading and trailing spaces, then lowercase
  • Phone: digits only, including the country code, with no symbols, letters or leading zeros
  • Names: lowercase, Roman a to z characters where possible, no punctuation, UTF-8 for special characters
  • Date of birth: YYYYMMDD; gender: f or m
  • City: lowercase with no spaces or punctuation; US state: lowercase two-letter code
  • Zip: lowercase with no spaces or dashes, first five digits for US codes
  • Country: lowercase two-letter ISO code, included even if every customer is in one country

Step 4: Test, verify and go live

Test before real traffic depends on it. In Events Manager, open Data sources, select your pixel and open Test Events for a test code, then add it as a top-level test_event_code field beside the data array; server events appear in the Test Events window once sent. Meta's Payload Helper shows how a payload should be structured, and calls can come from the Graph API Explorer, cURL or your own server.

Events sent with a test code are not dropped, so remove the field before production. A valid payload returns a 2xx response and an invalid one a 4xx with minimal detail, so log every response. Meta recommends retrying non-client errors such as timeouts and suggests a 1,500 millisecond request timeout.

After launch, check the pixel's Overview in Events Manager; Meta says server events should be verifiable within 20 minutes. Connection Method shows each event's channel, the Event Deduplication tab shows the share deduplicated per source, and Event Freshness shows the average delay. Deduplication needs the same event_name and event_id from browser and server, and Meta deduplicates matching events received within 48 hours. Our pixel and CAPI deduplication guide covers the edge cases.

Then keep events fast. Meta recommends sending them as they occur, ideally within an hour, and warns that sending events more than two hours after they occur can cause a significant decrease in performance, while delays of 24 hours or more may cause significant issues with attribution and optimized ad delivery. Move any nightly website-event export to real-time sending.

Sending CRM, offline and lead-stage events

CRM purchases and sales can go through the Conversions API, which Meta calls its recommended integration for offline and physical store events, posted to the same events edge of a dataset. Set action_source to where the sale really happened. Meta's offline events guide uses physical_store for offline and store transactions; the parameter's other values include phone_call for sales made over the phone, system_generated for automatic conversions such as a subscription renewal, and other when nothing listed fits. Use website only for conversions on your site.

Mind the clock. For most events, event_time can be at most 7 days old when sent, and one older event fails the entire request, so a weekly CRM sync is risky. Meta's offline events guide says physical_store transactions should be uploaded within 62 days of the conversion, and it recommends uploading in real time or daily. Purchases still need value and currency, plus the identifiers captured at the original click or lead, such as hashed email and phone, external_id and fbc. Our offline conversions guide covers the sales feedback loop.

Lead-stage feedback for instant forms has its own integration. Meta's Conversion Leads setup sends every CRM stage change with action_source system_generated, event_source crm and the CRM's name as lead_event_source, ideally with the 15 to 17 digit Meta lead ID, uploaded at least once a day. Meta's guidelines include at least 200 leads a month and a target stage reached within 28 days at a conversion rate between 1% and 40%. The Conversion Leads goal works only with Facebook and Instagram instant forms; for website leads, send standard server events.

Ownership, compliance and monitoring after launch

Keep the dataset, the token's system user and the integration in your own business portfolio. Server events are linked to the dataset, not to an ad account, so accounts can change without rebuilding tracking. Teams adding agency ad accounts from a supplier such as Power Ads, shared into their portfolio through partner access, keep their own dataset and Conversions API connection, connect that dataset to each new account and select it in the ad sets. Power Ads supplies the accounts only and does not set up or monitor tracking.

Compliance travels with the data. The Meta Business Tools Terms require contact information to be hashed as Meta specifies, bar data you know or reasonably should know is from or about children under 13, bar data that includes or is based on health, financial, consumer report or other sensitive information, and rule out event, conversion and custom audience names that reflect or imply those categories. You also need a lawful basis and any required consent. For US traffic, Limited Data Use is set per event through data_processing_options; Meta's documentation lists the states covered.

Then monitor it like production infrastructure. Compare event counts with your own orders or leads, and watch Event Match Quality (scored 1 to 10 for web events; Meta typically recommends 6.0 or higher), deduplication rate and freshness. Teams with many datasets can pull these signals from Meta's Dataset Quality API, which also reports event coverage and Additional Conversions Reported, a measure of how much the Conversions API adds alongside the pixel. Name an owner for a weekly check before you scale spend.

Key takeaways

  • Run the Conversions API alongside the pixel on the same pixel (dataset) ID, send the same events from both, and deduplicate with a matching event_name and event_id.
  • Generate the access token in the pixel's Events Manager settings; Meta creates the Conversions API app and system user for you, with no App Review needed.
  • Every event needs event_name, event_time (within 7 days for most events), action_source and user_data; website events also need event_source_url and client_user_agent, and purchases need value and currency.
  • Normalize and SHA-256 hash contact fields, but send IP address, user agent, fbp and fbc unhashed, and never modify the click ID.
  • Test with a test_event_code, remove it before production, and send live events in real time or within an hour.
  • CRM and offline sales can use the same API, as long as action_source honestly describes where each conversion happened.

FAQ

What is the Conversions API (CAPI) in Meta ads?

It is Meta's server-side connection for sending conversion events, such as purchases, leads and sign-ups, from your server, website platform, app or CRM to a Meta dataset. Meta processes those events like pixel events for targeting, optimization and measurement. It is designed to run alongside the Meta Pixel in a redundant setup, not to replace it.

How long does Conversions API setup take?

It depends on the route. Meta's one-click setup for website events needs no code. Its AWS guide puts Conversions API Gateway stack creation at about 30 to 40 minutes, with data appearing within 5 minutes to 2 hours. A direct integration takes as long as mapping, hashing, testing and deduplicating each event, which grows with every event and system involved.

Do I still need the Meta Pixel if I set up the Conversions API?

In most cases, yes. Meta's best practices recommend a redundant setup that sends the same events through both the pixel and the Conversions API, deduplicated with a matching event_name and event_id. Meta's implementation guide says to move to a server-only setup only after a redundant or split setup is already in place.

Can I send purchase events from my CRM to the Conversions API?

Yes. Send them as server events to the same dataset with value, currency, the customer identifiers you captured at the click or lead, and an action_source that matches where the sale happened, such as physical_store or phone_call. For most events, event_time must be no more than 7 days old when sent, while Meta's offline guide says physical_store transactions should be uploaded within 62 days. Meta recommends uploading in real time or daily either way.

What is the Meta Conversions API Gateway?

It is a no-code Meta product that you deploy in a cloud account your business owns. Your pixel sends each event both to Meta and to the Gateway, which forwards it through the Conversions API with a deduplication key. Setup starts in the Events Manager settings tab, and Meta says the only cost is the cloud resources or partner fees.

Why are my Conversions API events not showing in Events Manager?

Check the API response first: a 4xx means the payload, or events in it, were invalid. Causes to check include an event_time past the 7-day limit that applies to most events, which fails the whole batch, a wrong pixel ID or token, missing event_source_url or client_user_agent on website events, and unhashed contact fields. Allow up to 20 minutes before judging, and look for test-coded events in Test Events.

Is the Meta Conversions API free?

Meta's one-click setup for website events in Events Manager has no setup fees, and Meta describes the Gateway's only cost as cloud resources or partner fees. A direct integration mainly costs developer time and hosting for the server that sends events, plus whatever a partner platform charges if you use one.

Need agency ad accounts?Unlimited Meta agency accounts on our corporate cards, shared to your Business Manager through partner access. 4% per top-up, no setup fee, unused balance refunded within 24 hours (business days), free replacements, 24/7 on Telegram and WhatsApp.
@power_ads_hqGet the next one in Telegram.Meta policy shifts, spend-limit fixes and scaling notes from the Power Ads team. Join 2,900+ subscribers. Free, read-only, one tap to leave.Join channel

Sources

Power Ads background
By application only

We don't talk. We solve.

Unlimited Meta agency ad accounts on our corporate cards for teams spending roughly $100,000+ a month. 4% per top-up, no setup fee, 24/7 on Telegram and WhatsApp.

Telegram support · 24/7
TelegramWhatsAppApply