Meta CAPI setup for lead generation
Meta offers several ways to send events through the Conversions API, and they differ mainly in where the event starts. For a lead-gen business the deciding question is whether Meta should only hear about form submissions, or also about what happened to the lead in your CRM afterwards. This guide compares the routes on that basis. Pairing browser and server copies of the same event is covered in the deduplication guide.
MANTIS Last updated
Key takeaways
- The Conversions API sends events from a server, platform or CRM to Meta. Meta recommends running it alongside the Pixel and sending the same web events through both.
- Meta lists no fee for the Conversions API itself, says Conversions API with Meta needs nothing hosted or maintained, and says the only cost of the Conversions API Gateway is cloud resource or partner fees. Other routes cost hosting, vendor subscriptions or developer time.
- Conversions API with Meta and the Gateway both start from events the Pixel fires on your website, so neither can tell Meta that a lead was qualified or became a sale.
- Sending later lead stages needs a route that reads your CRM: a partner integration that supports it, or a direct integration.
- Meta's Conversions API for CRM and the Conversion leads performance goal are built around leads from Meta lead ads.
What is the Meta Conversions API and how does it work?
The Conversions API (CAPI) is Meta's endpoint for receiving events from your server, website platform, app or CRM instead of from the visitor's browser. Each request names the dataset (Pixel ID), the event, when it happened, where it happened and the customer information Meta can use to match it.
The Meta Pixel reports what happens in the browser while the page is open. The Conversions API reports what your systems know, and it can do so after the visitor has left: a lead that your server accepted, a call booked by phone, a stage changed in the CRM. Meta describes the API as one connection for website, app, business messaging and offline events.
For website events, Meta's best practices say to use the Conversions API in addition to the Pixel and share the same events through both. When the same event arrives twice, Meta needs a shared event name and event ID to count it once. The deduplication guide covers that step.
event_nameLead or a CRM stage nameevent_timeaction_sourcewebsite, phone_call, system_generated and othersevent_source_urluser_datafbc, fbp, IP address and user agentclient_user_agent is required for website events.Email and phone are normalised and hashed with SHA-256 before sending. The fbc click ID, the fbp browser ID, the IP address and the user agent are sent unhashed.
Is the Meta Conversions API free?
Meta lists no fee for sending events through the Conversions API. The cost sits in whatever sends them: nothing hosted for Conversions API with Meta, cloud hosting for the Gateway, and a vendor plan, a server or developer time for the other routes.
Is the Conversions API worth it for lead generation?
The Conversions API is worth setting up for lead generation when it tells Meta what the browser cannot see: which form submissions became accepted leads, and which of those later qualified or closed.
A Pixel-only setup tells Meta that a form was submitted, and only when the script runs on that page. It cannot report a lead that was rejected as spam, or a lead that sales qualified two weeks later. If Meta optimises on raw form submissions, it learns to find more form submissions, whatever their quality.
The routes differ in how much of that gap they close. A route that mirrors Pixel events adds a server copy of the same website events. A route that reads your CRM adds events the browser never sees. If counts in Meta already disagree with your CRM, read why Meta shows more leads than your CRM before adding another sender.
What does each setup route send, and what can it not do?
Conversions API with Meta and the Conversions API Gateway mirror Pixel website events without code, and server-side Google Tag Manager forwards browser events through a server you host. Only a partner integration that supports it, or a direct backend or CRM integration, can send events the browser never sees, such as CRM lead stages.
Conversions API with Meta (set up in Events Manager)
If the Pixel is already on the site, you can turn on Conversions API with Meta in Events Manager, with nothing for you to host or maintain. It sends website events only, based on the Pixel you already have. A lead that never fired a Pixel event, or a stage that happens in the CRM, does not reach Meta this way.
Conversions API Gateway
A self-serve option in Events Manager, provisioned in a cloud account the business owns on AWS or Google Cloud. Each time the Pixel fires, it sends the event to Meta and to the Gateway, which forwards it server-side with an automatically generated event ID for deduplication. It supports several Pixels and updates itself once a host admin consents. It handles the same Pixel events as the one-click route, and Meta notes that for Pixel-only website events, Conversions API with Meta does the job without hosting.
Partner or platform integration
A website builder, form tool or CRM sends events to your dataset through its own Conversions API connection. What it sends is whatever the vendor built: often the platform's version of the Pixel events, sometimes CRM stage changes. Check which events and customer fields it supports, and whether it sets an event ID that matches your Pixel, before you turn it on.
Server-side Google Tag Manager
A GA4 web container sends events to a server container you host, where Meta's Conversions API Tag forwards them with
action_sourceset towebsite. Meta's FAQ for this setup confirms it needs a browser-based tag to emit events. It gives you control over which fields reach Meta, but it still starts in the browser and does not read the CRM. Our server-side tracking page covers the hosting side.Direct backend or CRM integration
Your own server or CRM calls the API when a lead is accepted and again when its stage changes. It is the only route that sends exactly the events and fields you decide, including qualified leads and sales. In return you own the code, the access token, retries, monitoring and the consent logic.
How do the setup routes compare?
The setup routes differ most on whether they can send CRM lead stages: a direct integration can, a partner integration can if the vendor supports it, and the Pixel-based routes and server-side Google Tag Manager cannot.
Running two routes for the same website event sends it twice. Use one route per event, or make sure both copies share the event name and event ID.
Which Meta Conversions API setup should you choose?
Start from where your leads are qualified. If that happens in a CRM after the form, choose a route that reads the CRM; if the form submission is the outcome you care about, a Pixel-based route is enough.
If your leads are qualified in a CRM days later
Use a direct integration, or a CRM or partner integration that sends stage changes. Keep a Pixel-based route for the website
Leadevent if you want one.If your leads come from Meta lead ads and are worked in a CRM
Follow Meta's Conversions API for CRM guide, which sends every stage with the Meta lead ID. It is also the basis for the Conversion leads performance goal.
If your form tool or CRM already offers a Meta connection
Check what it sends and whether its event IDs match the Pixel before building anything yourself.
If the website form is the only outcome you track
Switch on Conversions API with Meta. Choose the Gateway only if you need the events to pass through infrastructure you control.
If you already run server-side Google Tag Manager
Add Meta's Conversions API Tag there rather than running a second server route for the same events.
How do you send CRM lead stages to Meta?
Send each stage change as its own server event, with the time the stage changed and the identifiers you saved with the lead. For Meta lead ads, Meta's Conversions API for CRM sets out the exact format.
Meta's Conversions API for CRM assumes the leads come from Meta lead ads and are already downloaded into your CRM with the 15 to 17 digit Meta lead ID. Each stage update goes back to Meta with action_source set to system_generated, custom_data.event_source set to crm, and lead_event_source naming your CRM. Meta asks for every stage, including the initial lead, with a minimum of two stages and three where possible.
{
"event_name": "Qualified lead",
"event_time": 1764000000,
"action_source": "system_generated",
"user_data": {
"lead_id": 1234567890123456
},
"custom_data": {
"event_source": "crm",
"lead_event_source": "HubSpot"
}
}event_time is when the CRM changed the stage. It has to be later than the lead's creation, and no more than 7 days before you send it.
Meta then trains on the data before the integration joins its production model, so campaigns can run during training without the full effect.
Leads from your own website form have no Meta lead ID. A direct integration can still send their later stages, matched on customer information you stored at submission: hashed email and phone, and the fbc value from the _fbc cookie. Set action_source to where the stage happened. Whether a campaign can optimise for those events depends on the objective and settings available in Ads Manager, so check there before planning around it.
Stage events have no browser copy, so there is nothing to deduplicate against the Pixel. Give each stage its own event name, and reuse the original event time when you retry a failed send. To compare what Meta reports with GA4 once stages flow, see why Meta and GA4 conversions don't match.
What has to be right whichever route you pick?
Whichever route you pick, each event needs one sender or a shared event ID, the consent decision has to be applied before the server sends anything, and one test event should be checked in Events Manager before going live.
- Decide which route owns each event. Two senders for the same
Leadwithout a shared event ID inflate the count. - A server sends data the visitor's browser settings cannot block, so the consent decision has to be applied in the tool or code that sends it.
- Send the website event after the submission is confirmed, not on the button click.
- Test one controlled lead with a test event code, as set out in the deduplication guide.
- Check Event Match Quality once events are flowing; the deduplication guide explains why it is separate from deduplication.
Frequently asked questions
Is Meta Conversions API free?
Meta's documentation lists no fee for sending events to the API. Conversions API with Meta needs nothing hosted or maintained, and Meta says the only cost of the Conversions API Gateway is the associated cloud resource or partner fees. Partner tools, server-side Google Tag Manager and direct integrations cost vendor plans, hosting or developer time.
Is the Conversions API worth it?
For a lead-gen business it is most useful when it sends what the browser cannot see, such as accepted leads and later CRM stages. A route that only mirrors Pixel events adds a server copy of the same website events and nothing about lead quality.
Should I use the Facebook Conversions API?
Meta recommends using it alongside the Pixel for website events. Which setup to use depends on where your leads are qualified: a Pixel-based route if the form is the outcome, a CRM-based route if qualification happens later.
What is CAPI and how does it work?
CAPI is Meta's Conversions API. Your server, platform or CRM sends each event to Meta with its name, time, action source and customer information such as hashed email or the fbc click ID, and Meta uses the customer information to match the event to a Meta account.
What is the difference between Conversions API Gateway and Conversions API with Meta?
Both send the Pixel's website events server-side without code. The Gateway runs in a cloud account your business owns and pays for; Conversions API with Meta needs nothing hosted. Meta says that for Pixel-only website events, Conversions API with Meta covers it without hosting.
Not sure which route fits your lead flow?
Tell us where your leads are captured and where they are qualified, and we can suggest which events Meta should receive and from where.
Not sure where the gap is yet? Take the short assessment.
Related reading
- Meta Pixel and Conversions API deduplicationPairing browser and server copies of the same lead.
- Why Meta shows more leads than your CRMDiagnosing count gaps between Meta leads and the CRM.
- Why Meta and GA4 conversions don't matchThe by-design reasons the two tools disagree.
- Server-side trackingHosting and routing choices for a server path.
Official documentation
- Meta: Conversions API overview (opens in a new tab)
- Meta: get started with the Conversions API (opens in a new tab)
- Meta: server event parameters (opens in a new tab)
- Meta: customer information parameters (opens in a new tab)
- Meta: Conversions API best practices (opens in a new tab)
- Meta: Conversions API Gateway (opens in a new tab)
- Meta: Conversions API for server-side Google Tag Manager (opens in a new tab)
- Meta: set up Conversions API as a platform (opens in a new tab)
- Meta: Conversions API for CRM integration (opens in a new tab)
- Meta: Conversions API for CRM payload specification (opens in a new tab)
- Meta: Conversions API for CRM FAQ (opens in a new tab)