Skip to main content
The Conversions API supports advertisers’ efforts to provide consumers with appropriate data transparency and control while also helping them to continue providing personal experiences. With the API, you can share data directly from your server, rather than through a browser.

Benefits of Integration

  • Deeper-Funnel Visibility: The Conversions API allows you to share a wider array of data when compared to the Meta Pixel. With the API, you can make decisions taking into account more information, such as CRM data, lower funnel events (including qualified leads), and multi-site conversion paths across a website and a physical location.
  • Data Control: When used via a Server-Only implementation (for example, without the Meta Pixel), the Conversions API gives you added control over what data you share. You can choose to append insights to your events, providing data such as product margins or historical information, like customer value scores.
  • Signal Reliability and Resiliency: Data sharing through the Conversions API may be more reliable than browser-based methods alone, like the Meta Pixel. The API is designed to be less susceptible to issues like a browser crash or connectivity problems. New industry data transmission restrictions may limit the efficacy of cookies and Pixel tracking, so the Conversions API helps you have control on sharing signals that may no longer be captured by the Pixel.
Additional Resources: View the Conversions API Direct Integration Playbook for Developers (PDF)and Direct Integration Webinar for Developers

Overview

You can think about your Conversions API integration in two main stages: The following is a snapshot of the complete integration process:
  • The events are being sent as close to real-time as possible.
  • Provide customer information parameters to be used for identity matching. |

Existing Pixel Users

If you have an existing Meta Pixel integration, the Conversion API integration should be built as an extension of the Pixel integration, instead of as an entirely different connection. If you have logic for controlling consent with respect to sharing Pixel data, use the same logic with respect to sharing data via Conversions API.

Alternatives

  • If you want to optimize your ads for app events, please use the App Events API.

Preparation

Pick Your Integration Type

To start, select the integration option you would like to implement:

Define Events to Send

Once you have chosen your integration approach, you can define which events you want to send. Signals are most useful if they are matched to Meta user IDs, so it is important to think through what parameters you are sending us with an event and how often you would like to send them.

Event Options

Send events that are most relevant to your business. See a full list of supported standard and custom Meta events.

Event Parameters

You can send multiple parameters inside each event. See parameters used by Conversions API to learn more about those fields. You can add multiple types of IDs to your events, including event_id, external_id and order_id. It’s important to know the difference between these parameters:
  • You send a second event with the same order_id within a specific time window, and We resolve that the same user completed both orders.You can deduplicate purchase events within two windows: 48 hours (recommended) or 28 days. This is the window between the first and second instances of the same event. |

Data Freshness

We recommend that you send events in real time or in batches based on a specific timeline via the Conversions API. Sending your events in real time or within 1 hour helps ensure that they can be used for attribution and optimized for ad delivery. Sending your events more than 2 hours after they occurred can cause a significant decrease in performance for ads optimized for those events. Events sent with a delay of 24 hours or more may experience significant issues with attribution and optimized ad delivery. If you’re sending events with long conversion windows, send the event as close to real time as possible from the point at which the full conversion is completed. Move on to the next step once you have:
  • A list of events to send.
  • The specific fields you want to send with each event.
  • Defined how frequently you will send events.

Available Optimization Types

The Conversions API offers the following optimization types:

Execution

There are two ways to implement your integration: Advertisers using conversions API through one of our marketing partners should follow our partner’s implementation guidelines.

Direct Integration

Step 1: Set Up Requirements

Prior to using the Conversions API, set up the following assets: Move on to Implement the API once you have the assets ready. Remember to save IDs for your assets, since you use those on your API calls.

Step 2: Implement the API

Once you are done with the requirements, start the implementation process. While building on the Conversions API, always check the developer documentation.

Test Calls (Optional)

If this is your first time using the API, start with a test call. To do that, you need a payload and a method for making API calls. After the call is completed, check Events Manager to verify the call worked as expected.