Skip to main content

Facebook CAPI Integration for Secure Event Tracking

Trackier offers easy Facebook CAPI integration to send server-side conversion events, route users securely, and sync data directly with the ad platform.

Updated this week

What is Facebook CAPI?

The Facebook Conversions API (CAPI) is a server-side integration that allows you to send conversion events directly from your server to Facebook bypassing the browser entirely.

Unlike the traditional Facebook Pixel, which relies on browser cookies and JavaScript, CAPI is not affected by ad blockers, browser privacy settings, or cookie restrictions.

This makes CAPI a more reliable and accurate method for tracking conversions from your Facebook ad campaigns, especially as browsers increasingly restrict third-party cookies.

Overview

The Facebook Conversion API (CAPI) helps advertisers track user interactions more accurately by sending events directly from their server to Facebook.

Using Trackier’s integration, you can connect your campaigns with Facebook CAPI to capture conversion events such as purchases, sign-ups, or app installs. This allows you to optimize campaigns, measure performance more effectively, and maintain data accuracy even in cases where browser tracking fails.

Following are the steps that need to be followed to make a successful integration with the Facebook conversion API.

Why Use Facebook CAPI with Trackier?

  • Send conversion events server-to-server for more reliable attribution

  • Capture conversions that would be missed by pixel-based tracking due to ad blockers or privacy settings

  • Optimize Facebook ad campaigns using accurate, real-time conversion data

  • Track specific goals and events purchases, sign-ups, installs, and more with full control over what data is sent

  • Maintain data accuracy even when browser tracking is unavailable

Before You Begin

Make sure you have the following ready from your Facebook Business Manager account before starting the setup:

  • A Facebook Dataset ID (previously known as a Pixel ID) you can create or select one from Events Manager → Data Sources. Note that Facebook allows a maximum of 100 datasets per account.

  • An Access Token generated from the dataset settings page in Events Manager

Facebook Configuration

The first step is to connect your Facebook dataset to Trackier by adding a Facebook configuration in your publisher interface.

Step 1: Open the Facebook Integration

  1. Log in to your Trackier publisher interface

  2. In the left control bar, navigate to Integration and select Facebook

  3. Click the Actions button at the top right

  4. Select Add New Configuration


    Old Publisher Interface

Facebook CAPI Integration for Secure Event Tracking- Trackier

New Publisher Interface

Facebook CAPI Integration for Secure Event Tracking- Trackier
  • Furthermore, you would need to add a new configuration through the Actions button at the top right.

    Old Publisher Interface

    Facebook CAPI Integration for Secure Event Tracking- Trackier

    New Publisher Interface

    Facebook CAPI Integration for Secure Event Tracking- Trackier

    Old Publisher Interface

    Facebook CAPI Integration for Secure Event Tracking- Trackier

    New Publisher Interface

    Facebook CAPI Integration for Secure Event Tracking- Trackier

    Fill in the Configuration Details

    Enter the following information on the configuration page:

    • Business Name: Enter your business name as you want it identified in this configuration

    • Facebook Dataset ID: Enter the Dataset ID from your Facebook Events

      Manager. To find this:

      1. Go to Events Manager → Data Sources in Facebook Business Manager

      2. Create a new dataset or select an existing one (maximum 100 per account)

      3. The Dataset ID is displayed on the dataset's settings page

    • Access Token: Enter the access token generated from the same dataset page in Events Manager

    Save the configuration once all fields are filled in.


    Facebook CAPI Integration for Secure Event Tracking- Trackier

Facebook Postback Setup

Once the Facebook configuration is saved, you can set up postbacks to define which conversion events are sent to Facebook and when.


Old Publisher Interface

Facebook CAPI Integration for Secure Event Tracking- Trackier

New Publisher Interface

Facebook CAPI Integration for Secure Event Tracking- Trackier


  1. You will find an option to "Add Facebook Postback" in the Postback section of your publisher interface.

    Old Publisher Interface​

    Facebook CAPI Integration for Secure Event Tracking- Trackier

    New Publisher Interface

    Facebook CAPI Integration for Secure Event Tracking- Trackier

  2. The details that need to be entered on this page are explained below:

  • Event Type: Conversions (this will be selected by default) and Goals.

  • Type : Facebook (this will be pre-filled)

  • Data: This is a pre-filled option, and no changes can be made.

  • Postback Config Name: You can add any name to your postback configuration.

  • Facebook Event ID: It is completely optional and is just to avoid duplicate data. In the event that duplicate data has been fired, this macro will guide Facebook to ignore such data.

  • Campaign: Enter the campaign for which you want to set this postback and for which the ad campaign is running.

  • Goal: Select the goal from the drop-down for which you are adding the postback.

Note:
The Goals option will be visible only when the event type is selected as Goals.

  • Action source: This is the source where the conversion is happening and is predefined by Facebook. It could be a website, an application, etc.

  • Facebook Config: It is the name of the Facebook configuration that you have done.

  • Facebook events: It is the type of event for which you are firing this conversion. There is a pre-defined list, and if you want, you can create custom events as well. This implies that you would be required to just type in the event name and remember to type in the exact name with case-sensitive letters.

  • Custom event: If you want to pass some additional data to Facebook, you do that via a custom event.

  • Facebook custom data: If it is a sale campaign, we need to send the sale amount and the currency in the postback; hence, select the macro for sale amount and currency.

  • Facebook user data: "Facebook clid" is the essential data as part of this, wherein the click ID is passed. These details will also be pre-filled; refrain from making any changes to these details. Since making any changes will affect the tracking.



    Old Publisher Interface​

    Facebook CAPI Integration for Secure Event Tracking- Trackier


    Old Publisher Interface

    Facebook CAPI Integration for Secure Event Tracking- Trackier

    ​​

    New Publisher Interface

    Facebook CAPI Integration for Secure Event Tracking- Trackier

    New Publisher Interface

    Facebook CAPI Integration for Secure Event Tracking- Trackier

Note:
The "Add Facebook Postback" option will only be available after setting up the Facebook configuration.

Editing Postback

If there is a need to edit the postback or view the postback logs, you can do that through the Actions button.

Old Publisher Interface

Facebook CAPI Integration for Secure Event Tracking- Trackier

New Publisher Interface

Facebook CAPI Integration for Secure Event Tracking- Trackier


Note:

The postback can be fired for approved, pending, cancelled, or rejected conversion status.

To do that, you need to go to Postback/Pixel, edit the postback, and select the allowed conversion status from the drop-down.

By default, postback will be fired only for the approved conversion status.

Conclusion

The Facebook CAPI integration in Trackier gives publishers a reliable, server-side method for sending conversion data back to Facebook ensuring your ad campaigns are optimized on accurate, complete data rather than what a browser pixel can capture alone.

Once configured, conversions tracked in Trackier flow directly to Facebook in real time, keeping your campaign measurement and optimization in sync.

IMPORTANT

'In the context of Facebook CAPI integration, the meta generates a significant number of clicks via bots. It is important to note that Trackier diligently tracks and reports all clicks received, including those from Facebook.

However, it is critical to understand that Facebook clicks are beyond Trackier's control. We are committed to maintaining transparency and accuracy in reporting. Please be assured that, despite the high volume of clicks, our platform's robust targeting mechanisms will rigorously evaluate and reject any clicks that do not meet your specified targeting criteria.

If you have any additional concerns or specific cases that require attention, please contact our dedicated support team for prompt assistance and resolution.


We're thrilled to have put together a top-notch team of qualified experts who are available to handle any of your concerns and respond to any inquiries you may have. You can contact us at any time by sending an email to support@trackier.com or using the in-platform chat feature.

Did this answer your question?