Facebook Conversions Destination

  Sign up for early access!

Apply for early access to be among the first to try out Customer.io Data Pipelines. Bear with us: it may take a few weeks for us to approve your request as we're actively working on CDP.

About this integration

The Facebook Conversions API enables businesses to send events that are linked to a pixel and processed in the same manner as browser pixel events directly to Facebook. These events help you measure, report, and optimize activities so you gain valuable insights into user behavior and can improve the effectiveness of your Facebook marketing efforts.

Getting started

  1. Go to the CDP tab and click Connections.

  2. Click Add New under Destinations.

  3. Select the Facebook Conversions API destination.

  4. (Optional) Select the sources that you want to connect to this destination. You can always connect sources to your destination later. We’ll only show you eligible sources.

  5. Configure your destination.

    1. Pixel Id: Your Facebook Pixel ID

    2. Test Event Code: Use this field to specify that events should be test events rather than actual traffic. You can find your Test Event Code in your Facebook Events Manager under the "Test events" tab. You'll want to remove your Test Event Code when sending real traffic through this integration.

    Setup your destination
    Setup your destination

  6. Click Enable Destination.


When you’re done setting up your destination, you can go to the Actions tab to see how we map source events to your destination.

You may need to add actions for this destination

While we often have default triggers for actions, we don't always add those actions as defaults. You may need to add actions to make sure that you're sending all the data that you want to send to your destination. See our actions page for help setting up actions.

ActionDefault TriggerDescription
Purchasetype = "track" and event = "Order Completed"Send event when a user completes a purchase
Initiate Checkouttype = "track" and event = "Checkout Started"Send event when a user enters the checkout flow
Add to Carttype = "track" and event = "Product Added"Send event when a user adds a product to the shopping cart
View Contenttype = "track" and event = "Product Viewed"Send event when a user views content or a product
Searchtype = "track" and event = "Products Searched"Send event when a user searches content or products
Page Viewtype = "page"Send a page view event when a user lands on a page
Custom EventSend a custom event

FAQ & Troubleshooting

Other Standard Events

If you want to send Facebook standard events that we don’t have ready-made actions for, you can use the Custom Event action. For example, if you want to send a CompleteRegistration event, you would create a custom event action, set up your trigger criteria for completed registrations, and enter “CompleteRegistration” as the Event Name. When you set up custom actions, you can add fields you expect to send in events, like content_name and currency.

Personally Identifiable Information (PII)

We automatically create a SHA-256 hash of the following fields before forwarding data to Facebook:

  • External ID
  • Email
  • Phone
  • Gender
  • Date of Birth
  • Last Name
  • First Name
  • City
  • State
  • Zip Code
  • Country

The Facebook Pixel library also hashes the external ID. This means that external IDs will match across Facebook Pixel and Facebook Conversions API if you use external IDs for deduplication.

User Data Parameters

We automatically map user data fields to their corresponding parameters as expected by the Conversions API before we send data to Facebook.

User Data FieldConversions API User Data Parameter
External IDexternal_id
Date of Birthdb
Last Nameln
First Namefn
Zip Codezp

Server Event Parameter Requirements

Facebook requires the action_source event parameter, which specifies where conversions occur, for all events sent to the Facebook Conversions API. If action_source is set to website, then the client_user_agent and the event_source_url parameters are also required. Events sent to the Conversions API that don’t meet this requirement may not be available for optimization, targeting, or measurement.

Verify Events in Facebook

When you start sending events, you should start seeing them within twenty minutes. To confirm that Facebook received your events:

  1. Go to the Events Manager.
  2. Click the pixel corresponding to your conversion events.
  3. In the Overview tab, look for events where the Connection Method is Server.
Copied to clipboard!
Is this page helpful?