How to enable Conversion API for Facebook pixel and Using Test Event Code
Articles on: OnePixel
Boost your ad performance, enhance tracking accuracy, and reduce cost per action by setting up Facebook’s Conversions API for your Pixel. This guide walks you through enabling the Conversions API using an access token and how to test events with a test event code.
1. What is the Facebook Conversion API?
2. Why Use the Conversion API?
3. Step-By-Step Guide
Enable Conversion API
Use Test Event Code to Verify Tracking.
The Conversions API is designed to create a direct connection between your marketing data and the systems which help optimize ad targeting, decrease cost per action and measure results across Meta (Facebook) technologies. Please refer to this article for more information.
By integrating CAPI, you’ll benefit from:
Improved event tracking accuracy despite browser restrictions.
Optimized ad targeting using more reliable conversion data.
Reduced cost per action (CPA) and better campaign performance.
More control over what data is shared with Facebook.
Enable Conversion API
You need to have a Facebook access token to turn on the Conversion API. Let me show you how to find it.
Please access the URL:
https://business.facebook.com/events_manager2/list/pixel/**enter the pixel ID that you connected with our app**
You will be redirected to the page as follows:
Please click the Settings tab and scroll down to find the Conversions API. At the Set up manually on Conversions API, please click Generate access token
You can press Ctrl + F to search Generate access token, it will help you find it quickly
After that, please copy this token
After having it, please go back our app > Edit > enable Conversion API > enter the FB access token > Save to complete the process.
Use Test Event Code to Verify Tracking.
After enabling Conversion API, please click into the Test events tab, kindly copy the test event code.
Then please come back to our app > Edit > enter the test event code > Save to complete the process.
After that, please enter your website URL > click into the Open website button to go to your storefront and test the events.
Our app tracks 6 events through Conversion API: Search, View content, Add to cart, AddPaymentInfo, Initiate checkout & Purchase events.
You will see the events are tracked with the connection method is Server, it is Conversion API.
⚠️ Remove the Test Event Code after testing. Otherwise, real user activity will not appear correctly in your Pixel’s Overview.
✅ Feature Availability: The Conversion API integration is available on Standard, Professional, and Advanced plans only.
Need Help?
Enabling Facebook’s Conversions API is a crucial step toward accurate data tracking and smarter advertising. By following this guide, you ensure better ad optimization, even in a privacy-first digital environment. Now that you're all set, start making the most of your marketing data!
If you have any further questions about this, don't hesitate to contact us via in-app live chat or email at support@socialhead.io.
Boost your ad performance, enhance tracking accuracy, and reduce cost per action by setting up Facebook’s Conversions API for your Pixel. This guide walks you through enabling the Conversions API using an access token and how to test events with a test event code.
Table of Contents
1. What is the Facebook Conversion API?
2. Why Use the Conversion API?
3. Step-By-Step Guide
Enable Conversion API
Use Test Event Code to Verify Tracking.
1. What is The Facebook Conversion API?
The Conversions API is designed to create a direct connection between your marketing data and the systems which help optimize ad targeting, decrease cost per action and measure results across Meta (Facebook) technologies. Please refer to this article for more information.
2. Why Use the Conversion API?
By integrating CAPI, you’ll benefit from:
Improved event tracking accuracy despite browser restrictions.
Optimized ad targeting using more reliable conversion data.
Reduced cost per action (CPA) and better campaign performance.
More control over what data is shared with Facebook.
3. Step-By-Step Guide
Enable Conversion API
You need to have a Facebook access token to turn on the Conversion API. Let me show you how to find it.
Please access the URL:
https://business.facebook.com/events_manager2/list/pixel/**enter the pixel ID that you connected with our app**
You will be redirected to the page as follows:
Please click the Settings tab and scroll down to find the Conversions API. At the Set up manually on Conversions API, please click Generate access token
You can press Ctrl + F to search Generate access token, it will help you find it quickly

After that, please copy this token

After having it, please go back our app > Edit > enable Conversion API > enter the FB access token > Save to complete the process.

Use Test Event Code to Verify Tracking.
After enabling Conversion API, please click into the Test events tab, kindly copy the test event code.

Then please come back to our app > Edit > enter the test event code > Save to complete the process.

After that, please enter your website URL > click into the Open website button to go to your storefront and test the events.

Our app tracks 6 events through Conversion API: Search, View content, Add to cart, AddPaymentInfo, Initiate checkout & Purchase events.
You will see the events are tracked with the connection method is Server, it is Conversion API.

Important Notes
⚠️ Remove the Test Event Code after testing. Otherwise, real user activity will not appear correctly in your Pixel’s Overview.
✅ Feature Availability: The Conversion API integration is available on Standard, Professional, and Advanced plans only.
Need Help?
Enabling Facebook’s Conversions API is a crucial step toward accurate data tracking and smarter advertising. By following this guide, you ensure better ad optimization, even in a privacy-first digital environment. Now that you're all set, start making the most of your marketing data!
If you have any further questions about this, don't hesitate to contact us via in-app live chat or email at support@socialhead.io.
Updated on: 06/04/2025
Thank you!