Overview
Meta Web CAPI enables Branch to forward web conversion events to Meta's Conversions API server-side. When users click your Meta ads via Branch Ad Links, Branch captures click metadata, attributes the resulting web conversions, and forwards those events back to Meta, closing the full signal loop between ad click, attribution, and campaign optimization.
Branch has always attributed web conversions. With Meta Web CAPI enabled, Branch now also shares that web conversion signal with Meta, giving Meta's algorithm the data it needs to improve Event Match Quality (EMQ), optimize ad delivery, and surface more complete conversion reporting in Meta Events Manager without relying solely on browser-based pixel tracking.
For more information about integrating ad partners in general, visit our Ad Partner Integration Guide.
Note: Meta Web CAPI vs. Meta SAN attribution
Meta Web CAPI sends web conversion signal from Branch to Meta to support optimization and reporting. It is separate from the Meta SAN integration, which returns app attribution claim data to Branch. Enabling Meta Web CAPI does not change how Branch attributes conversions or how Meta SAN credit is assigned in Branch.
Partner capabilities
Capability | Details |
|---|---|
Supported event sources | Branch Web SDK, Server-to-server (S2S) |
Platforms | Web |
Supported; enhanced when | |
Event deduplication | Supported via |
Before you begin
To set up Meta Web CAPI, you need:
Branch's Performance Product enabled for your Branch account. Contact your Branch account manager or visit https://branch.io/pricing.
The Meta (Facebook) integration enabled in Branch under Configuration > Integrations > Ad Partners.
The Branch Web SDK implemented on your website with event tracking configured, or web conversion events sent via server-to-server (S2S) ingestion.
Branch Ad Links placed in your Meta web campaigns.
This is a primary matching signal Branch uses when forwarding events to Meta CAPI and has positive impact on EMQ. See more about EMQ.
Enable Meta Web CAPI
To begin, navigate to Configuration > Ad Partners > Facebook in Branch.
Meta CAPI requires a Dataset ID and CAPI Access Token from your Meta Events Manager account. Follow the steps below to retrieve these credentials and enable CAPI forwarding in Branch.
Step 1: Retrieve your Dataset ID
Log in to Meta Events Manager.
Navigate to Datasets and select your Dataset (Pixel) from the left panel.
Your Dataset ID can be retrieved from the Events Activities window. Copy this value.
Step 2: Generate a CAPI Access Token
In Meta Events Manager, select the dataset from Step 1.
Select the Settings tab.
Under Conversions API, locate the Access Token section and select Generate access token. Copy this token.
Step 3: Enter credentials in Branch
In Branch, navigate to Ad Partners > Facebook and open the Partner Settings dialog.
Under Postback credentials, enter the Dataset ID and CAPI Access Token from Steps 1 and 2.
Select Save.
Once saved, Branch will begin forwarding eligible web conversion events to Meta CAPI based on your configuration.
Configure postbacks
Web conversion events are forwarded to Meta CAPI based on your postback configuration. Branch maps these to Meta's standard Conversions API event names as follows:
Meta event | Branch event |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Enable Send all events on the Postback config tab to forward all web conversion events Branch receives, not just events attributed to Meta campaigns. This gives Meta the broadest possible signal for optimization and reporting.
To add postbacks for additional events or to customize behavior, follow the steps in the "Configure postbacks" section in the general Ad Partner Integration Guide.
Deduplication with Meta Pixel
If you also use the Meta Pixel or leverage CAPI through other sources, the same conversion event may be sent multiple times. Meta deduplicates these using a shared event_id . If both events carry the same event_name and event_idMeta counts them as a single conversion.
Branch uses transaction_id as the event_id sent to Meta CAPI. To facilitate deduplication, pass the same transaction_id in your Branch Web SDK event as you do for the eventID in your Meta Pixel event for the same conversion.
Caution:
transaction_idrequired for deduplicationIf
transaction_idis not provided on the event, Branch will omitevent_idfrom the CAPI payload. Meta will not be able to deduplicate those events with Pixel, which may result in duplicate conversions in Meta reporting.
Verify your data
After saving your credentials and configuring postbacks, verify that events are flowing correctly:
In Branch Liveview: confirm that web conversion events from your site appear in real time. Filter for
Platform = Webto isolate web events.In Meta Events Manager: navigate to your dataset and confirm that events forwarded by Branch appear under the Overview tab.
In Meta Events Manager > Test Events: use the Test Events tool to send a test conversion and verify it’s received and matched correctly.
CAPI data mappings
Branch maps the following fields from web conversion events to the Meta Conversions API payload:
Meta CAPI field | Branch source field | Notes |
|---|---|---|
|
| Mapped to Meta standard event names. See event mapping table above. |
|
| Unix timestamp in seconds. |
|
| Used for event deduplication. Omitted if |
| Hardcoded: | Required by Meta for all web CAPI events. |
|
| The URL of the page where the conversion occurred. |
|
| Captured from the originating web request. |
|
| Captured from the originating web request. |
|
| Formatted as |
|
| Included when present on the event. |
|
| Included when present on the event. |
|
| Maps |
|
| Array of |
Map content type to product
Note that Branch will automatically map “content_type”: “product” when the event carries content_items[]. Otherwise, Branch will not add the “content_type” variable.
Troubleshoot
Follow the steps below to troubleshoot common issues with Meta Web CAPI.
Events not appearing in Meta Events Manager
If forwarded events are not appearing in Meta Events Manager:
Confirm that your Dataset ID and CAPI Access Token are entered correctly in Branch. An invalid token causes all events to be rejected by Meta.
Confirm that web events are being tracked through the Branch Web SDK or S2S and are appearing in Branch Liveview. Branch can only forward events it has received.
Confirm that Send all events is enabled on the Postback config tab, or that the specific events you expect are included in your active postbacks.
Low EMQ score
Confirm that Branch Ad Links are placed in your Meta campaigns. Without Branch Ad Links, Branch cannot capture the
fbcparameter, which will be absent from CAPI events.fbcis the primary click-level matching signal and has positive impact on EMQ.Confirm that your Branch Web SDK implementation is capturing the page URL where conversions occur (
event_source_url). Along with IP address and user agent, this field contributes to match quality whenfbcis absent.
Duplicate conversions in Meta reporting
If you are using both Meta Pixel and Branch CAPI and see higher-than-expected conversion counts in Meta reporting, deduplication may not be working. Confirm that:
The
transaction_idpassed in your Branch Web SDK event matches theeventIDpassed in your Meta Pixel event for the same conversion.Both the Pixel event and the CAPI event use the same
event_name. Meta requires both the event name and the event ID to match for deduplication.