Facebook Conversions API (Meta CAPI): server conversions next to the Pixel

VulCode, a software house from Cracow, Poland, connects your store's server to the Meta Conversions API, Meta's server-side conversion API for Facebook and Instagram. A purchase, a sign-up or an enquiry goes from the server next to the Pixel, and each event gets an event_id, so Meta can tell the browser copy from the server one. The server sends an event only when the banner consent allows it. The Conversions API setup costs from PLN 999 (about EUR 220) and usually takes 2-3 days, and the free quote comes back within an hour.

From a store event to Meta

The same conversion reaches Meta by two routes. Deduplication decides which one stays. Each stage has one job: the store provides the identifier, the server sends the conversion, and Meta counts it after deduplication.

  1. Store an event in the browser, the Pixel with eventID event from the cart
  2. Server the same event with the same event_id event_id from the store
  3. Conversions API POST of the event to the Meta endpoint POST of the event
  4. Deduplication the event_id and event_name pair, a 48-hour window one conversion
  5. Meta the conversion in reports and optimisation
When it works
Meta counts one conversion, not two
When it fails
Without a matching event_id, Meta does not deduplicate the events

Event fields on the server side

The fields that the Meta documentation lists for website events and for deduplication.

FieldWhat forWhere from
event_idLets the Pixel event be deduplicatedThe same identifier from the store
event_nameMust match the event on the browser sideThe store code
action_sourceWhere the event came from, required for website eventsThe website value
client_user_agentBrowser data, required for website eventsThe request header
event_source_urlThe address of the page where the event happenedThe page address

For website events action_source, client_user_agent and event_source_url are required. Other fields depend on the event type.

The deduplication window

Deduplication works over time. After the window, a further event with the same event_id is treated as new.

  1. 01 browser

    The Pixel sends the event with eventID. If it arrives first, Meta usually keeps that one.

  2. 02 server

    An event with the same event_id and event_name within 48 hours of the first one is rejected as a duplicate.

  3. 03 after 48 hours

    An event with the same event_id is no longer deduplicated. That is why we assign the identifier to a specific conversion once.

Before the first conversion goes from the server

Details that block the launch if someone forgets them.

Points left 4

Done: 0
  1. 01 The same event name on both sides Pixel and events The Pixel and the server must send the same event name, otherwise matching by event_id and event_name does not work.
  2. 02 A unique event_id per conversion Pixel and events We generate the identifier in the store and pass it both to the Pixel and to the server. The same purchase always has the same identifier.
  3. 03 A test event code Tests and consent The test_event_code parameter marks test events before they go to production.
  4. 04 Consent before sending Tests and consent The server sends an event only with consent from the banner. Without consent, the event does not leave the server.
  5. All points checked Pixel and events 2/2 Tests and consent 2/2

The Pixel alone or the Pixel with a server

The Pixel alone is not enough when part of the conversions happens outside the browser. Then the server adds the missing events.

Pixel only

  • The store is simple and the events happen in the browser.
  • You do not need conversions from a warehouse system or from a phone.

The Meta Pixel with a ready store plugin, without a server of your own.

E-commerce platforms

Pixel and Conversions API

  • Conversions also happen in your system, not only in the browser.
  • You want server events in Meta, e.g. after a payment confirmed in your system.

The Pixel in the store and the Conversions API on your server, with deduplication by event_id.

The store collects consent, the server only respects it

The Conversions API does not collect consent.

Your banner does, and the server sends only what the user agreed to.

  1. 01

    Limited Data Use is a Meta setting that limits how user data from selected US states is processed. If you sell to the US, we set it before we switch the sending on.

  2. 02

    Conversion data sent from the server falls under the same consent as the Pixel. We do not send events the user has not consented to.

  3. 03

    When a store has several conversion sources, e.g. a form, a payment and an order system, each of them gets the same identifier scheme. This way the conversion count in Meta does not grow just because one event arrived by two routes.

Common questions about the Meta Conversions API

Click a question to see the answer.

How much does a Conversions API setup cost?
A Conversions API setup costs from PLN 999 (about EUR 220). The figure grows with the number of event types and the systems we send them from. A typical setup takes 2-3 days, and the free quote comes back within an hour. We quote it under our API and integrations service.
How long does it take?
Usually 2-3 days. The exact dated schedule comes with the free quote, and if anything is going to move, you know in advance.
Who builds the Conversions API integration?
VulCode, a software house from Cracow, Poland, builds the Conversions API on your server and connects it to the Pixel in the store. The Meta account, the Pixel and Business Manager access stay with you.
Will server events replace the Pixel?
No. Server events go next to the Pixel, and Meta processes them the same way as Pixel events. The Pixel stays in the store, because it sends browser events, and their duplicates are removed by event_id.
What is event_id and why is it needed?
It is the event identifier that the store passes to the Pixel as eventID and to the Conversions API. Meta uses it together with event_name to match copies of one event, and within 48 hours it rejects duplicates. We assign the identifier once, at the event, and do not generate it again for each send, because then deduplication would have nothing to match.
What about user consent?
The server sends an event only when the banner allows it. Consent is collected by the cookie banner with Consent Mode v2, and we connect it to the sending from the server.
How do you check the events before launch?
With a test event code, before they go to production. We check that each conversion has its own event_id and that Meta deduplicates them.

Sources

Technical details come from the Meta documentation.

Describe your project.

A free quote comes back within an hour during working hours.