Skip to main content
MANTISAttribution infrastructure
ServicesResourcesAssessmentGet in touch
MANTIS

MANTIS: Measurement and Tracking Infrastructure SystemMeasurement and Tracking Infrastructure System

Tracking and attribution infrastructure for lead-gen businesses running Google and Meta ads, so your CRM, ad platforms and reports agree on the numbers.

Services

  • Tracking Audit
  • Tracking Architecture
  • Offline Conversions
  • Lead Automation
  • Audience Suppression

More

  • Assessment
  • Resources
  • Get in touch
  • Privacy Policy
© 2026 MANTISTracking & Attribution InfrastructureZagreb, Croatia
Guides/Meta CAPI setup for lead generation

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 25 November 2026

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.

On this page

  • What CAPI is
  • Is it free
  • Is it worth it
  • The five routes
  • Decision table
  • Decision flow
  • CRM lead stages
  • Common checks
  • FAQ

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.

Field
What it holds
Meta's rule
Fieldevent_name
What it holdsThe action, such as Lead or a CRM stage name
Meta's ruleMust match the browser copy if one exists
Fieldevent_time
What it holdsUnix timestamp in seconds, in GMT, of when the action happened
Meta's ruleUp to 7 days before sending. An older event makes the whole request fail.
Fieldaction_source
What it holdsWhere the action happened: website, phone_call, system_generated and others
Meta's ruleRequired, and you confirm it is accurate
Fieldevent_source_url
What it holdsThe page where a website event happened
Meta's ruleRequired for website events
Fielduser_data
What it holdsCustomer information such as hashed email, fbc, fbp, IP address and user agent
Meta's ruleAt least one parameter. client_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.

Route
Meta fee
Cost in kind
RouteConversions API with Meta
Meta feeNone listed by Meta. Meta says it needs nothing hosted or maintained.
Cost in kindKeeping the Pixel events correct
RouteConversions API Gateway
Meta feeNone. Meta says the only cost is cloud resources or partner fees.
Cost in kindA cloud account the business owns (AWS or Google Cloud), its bill and approving updates
RoutePartner or platform integration
Meta feeNone listed by Meta
Cost in kindThe vendor's plan, and someone to own the event mapping
RouteServer-side Google Tag Manager
Meta feeNone listed by Meta
Cost in kindHosting the server container, plus tag setup and upkeep
RouteDirect backend or CRM integration
Meta feeNone listed by Meta
Cost in kindDevelopment, monitoring, retries and token management

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.

  1. 01

    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.

  2. 02

    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.

  3. 03

    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.

  4. 04

    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_source set to website. 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.

  5. 05

    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.

Route
What triggers the event
Can send CRM lead stages
Needs a developer
Ongoing ownership
Main limit
RouteConversions API with Meta
What triggers the eventThe Pixel firing on your site
Can send CRM lead stagesNo
Needs a developerNo
Ongoing ownershipMeta runs it; you keep the Pixel events right
Main limitOnly website events the Pixel already tracks
RouteConversions API Gateway
What triggers the eventThe Pixel firing on your site
Can send CRM lead stagesNo
Needs a developerNo code, but someone administers a cloud account
Ongoing ownershipYour cloud account, its bill and update approvals
Main limitHosting to own for the same events as the one-click route
RoutePartner or platform integration
What triggers the eventEvents inside the vendor's platform
Can send CRM lead stagesOnly if the vendor supports it
Needs a developerUsually not
Ongoing ownershipThe vendor maintains the code; you own the mapping
Main limitLimited to the events and fields the vendor exposes
RouteServer-side Google Tag Manager
What triggers the eventA browser tag sending to your server container
Can send CRM lead stagesNo
Needs a developerYes, for tag and server setup
Ongoing ownershipYour server container and its tags
Main limitStill starts in the browser
RouteDirect backend or CRM integration
What triggers the eventYour server or CRM, on acceptance or stage change
Can send CRM lead stagesYes
Needs a developerYes
Ongoing ownershipYour code, token, retries and monitoring
Main limitThe most to build and maintain

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.

  1. 01

    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 Lead event if you want one.

  2. 02

    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.

  3. 03

    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.

  4. 04

    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.

  5. 05

    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.

One CRM stage event for a lead-ad lead
{
  "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.

Check
Meta's guideline
CheckLead source
Meta's guidelineMeta lead ads
CheckVolume
Meta's guidelineAt least 200 leads a month
CheckUpload frequency
Meta's guidelineAt least once a day, in real time or in batches
CheckStage timing
Meta's guidelineThe stage you optimise for happens within 28 days of the lead
CheckStage conversion rate
Meta's guidelineBetween 1% and 40% of leads reach the optimised stage
CheckCoverage
Meta's guidelineEvery lead generated on Meta gets uploaded events

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 Lead without 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.

Talk through your setupSee the tracking service

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)