Tracking

Conversion API

CAPI

In short

A Conversion API (CAPI) is an interface that sends conversions directly from server to server to ad platforms like Meta or Google, without the browser.

Also known as: Conversions API, Meta Conversions API

A Conversion API (CAPI for short) is an ad platform interface that lets you send conversions directly from your server to the platform – without going through the user's browser. The best known is the Meta Conversions API; Google Ads, TikTok and LinkedIn offer comparable interfaces.

How the Conversion API works

Instead of a tracking pixel firing in the browser, your server (or a tool) sends an API request to the platform. It contains:

  • Event: e.g. lead, purchase or closed deal
  • Timestamp and optionally value and currency
  • Matching data: click IDs like fbclid (or the fbc value derived from it) or gclid, plus email address, phone number and name pseudonymized with hashing (SHA-256)
  • Event ID: for event deduplication with the pixel

The more matching data you send, the better the platform can match the event to a user and thus to an ad click. Meta rates this with its Event Match Quality score.

Example

An insurance broker generates 300 leads a month from Meta, 24 of which become customers. The pixel only reports the leads it sees in the browser. Through the Conversion API, the 24 closed deals are also sent – with the commission as value, weeks after the click. Meta learns which audiences actually bring in customers instead of just optimizing for cheap leads.

Conversion API for lead generation

The biggest lever is offline conversions: deals closed in the CRM and payments never happen in the browser and can only be reported through a Conversion API. Value-based bidding needs exactly these values.

With the LeadMetrics Conversion API you send leads, purchases, trials, subscription events, won or lost deals and custom metrics to Meta, Google Ads, TikTok and LinkedIn. Per project you decide which LeadMetrics event maps to which platform event, and whether only attributed data or (for Meta and TikTok) all data is sent. Data comes from sources like HubSpot or Stripe, and every lead has a log of the events sent.

Common mistakes

  • No event ID: Pixel and CAPI send the same event and the platform counts it twice.
  • Unhashed data: Contact data must be normalized and hashed before sending.
  • Only sending leads: If you don't report the closed deal, you're giving away your most valuable signal.

Ready for better tracking?

Try LeadMetrics free for 10 days and see which campaigns actually drive revenue.
Start a 10 day trial

Frequently asked questions

For reliable data: yes. The pixel loses conversions to ad blockers and cookie restrictions. The Conversion API delivers those events server side. When both run in parallel, a shared event ID makes sure nothing is counted twice.

Guides on this topic

Articles on this topic

Related terms

All terms