Skip to content
My Agile Pixel® server-side, made easy
Channels

How to Configure the Facebook Pixel for the Meta Conversion API (Facebook CAPI)

Updated Oct 2026 2 min read

In this step-by-step guide you’ll see how to configure server-side event tracking via Meta’s Conversions API and how to obtain the Access Token and Dataset ID to enter in the My Agile Pixel® settings. The whole process takes place in Meta’s Events Manager.

Note: Meta has renamed “Pixels” to “datasets”. The dataset is the data source that collects your site’s events; inside it you enable and configure the Conversions API.

Step 1: connect a new data source

In Events Manager, click “Connect data sources” (or “Add events”), then “Connect a new data source”. In the window that opens, select “Web” and click “Next”.

Connect a new data source: selecting Web in Events Manager

Step 2: create the dataset

Give the dataset a name and leave the “Add Conversions API for web events” option enabled, then click “Create”. If you already have a dataset for this site, you can select it with “Select an existing dataset”.

Create a new dataset: naming the dataset

When prompted, choose the ad accounts to connect to the dataset (“Choose the ad accounts you want to connect to this dataset”) and continue with “Next”.

Selecting the ad accounts to connect to the dataset

Step 3: set up the Conversions API

On the “Connect your web data” screen, select “Set up Conversions API” and click “Next”.

Connect your web data: selecting Set up Conversions API

Step 4: choose manual setup

On the “Set up Conversions API” screen, among the proposed methods select “Set up manually” and click “Next”.

Set up Conversions API: selecting Set up manually

Meta shows an overview of the steps (“Manual Implementation Overview”): click “Continue”.

Manual Implementation Overview: overview of the steps

Step 5: select the events

In the “Select Events” step, choose the events you want to send via the Conversions API – for an online store, for example, “View Content”, “Add to Cart” and “Purchase” – then click “Continue”.

Select Events: choosing the events to send

Step 6: select the event details

In the “Select Event Details” step, indicate the parameters to send for each event, then click “Continue”.

Select Event Details: choosing the event parameters

Step 7: generate the Access Token

Continue to the “See Instructions” step. In the “Generate an Access Token” section, leave “Set up with Dataset Quality API” selected and click “Generate access token”. Copy the token right away and store it in a safe place: for security reasons Meta won’t show it to you again and, if you lose it, you’ll have to generate a new one.

Generate an Access Token: generating the access token

Step 8: get the Dataset ID and enter the data in My Agile Pixel®

You’ll find the “Dataset ID” in the dataset’s “Settings” tab, in Events Manager.

Dataset Settings: where to find the Dataset ID

Enter the Access Token and the Dataset ID (the “Pixel ID / Dataset ID” field) in the Facebook tab of the My Agile Pixel® settings. From this moment on, your dataset is ready to receive events via the Conversions API, in proxied, compliant form.

Step 9: remove the client-side code

Remove the JavaScript code if you had installed it in your theme, and disable any other software that may add it. In any case, My Agile Pixel® works to keep the site compliant: whether you use My Agile Privacy® or not, it is able to block any client-side and non-compliant versions of the installation code that may be present.

Frequently asked questions

// ready to go

Recover the conversions you are losing

Turn on server-side tracking on your WordPress: recover the events the browser blocks, after consent.

Buy now →