Magento Facebook Conversions API Integration | Pixel ID & Access Token Guide
This article explains how to set up the Facebook Conversions API for server-side event tracking. It covers how to retrieve your Tracking Pixel ID and Access Token from the Facebook Events Manager.
Step-by-Step Instructions
1. Go to Facebook Events Manager
Visit the Facebook Conversions API setup page in Events Manager.
2. Select or Create Your Pixel
- In the left-hand menu, click on your Business Account.
- Under the Data Sources section, choose Pixels.
- If you already have a pixel, select it from the list. If not, click “Add” to create a new Facebook Pixel.
Note your Pixel ID. You’ll need this to link your site to Facebook’s API.
3. Choose a Setup Method
After selecting the Pixel, click on the Settings tab and scroll to the Conversions API section. Click Set Up.
Choose the manual option to generate an Access Token yourself (you can skip the partner integration wizard).
4. Generate Access Token
- Scroll down to Set up manually.
- Click Generate Access Token. A pop-up will appear with your token.
- Copy and save the token securely. This is your server-side authentication key.
5. Store Pixel ID and Token in Your Integration
Use the Pixel ID and Access Token in your Magento or custom integration to connect to the Facebook Conversions API. These values authenticate your server-to-server requests for event tracking.
6. (Optional) Test Events
Navigate to the Test Events tab in your Pixel dashboard to validate whether your events are correctly being received via the API.
What You Need
- A Facebook Business Manager account
- An active Facebook Pixel
- Admin access to Events Manager
- Server or platform (e.g., Magento) that supports API integration
If you are using Magento 2 or another eCommerce platform, you can now insert the Pixel ID and Access Token into the backend configuration or plugin settings where the Conversions API fields are located.
For more information about Facebook's Conversions API, visit the official documentation.