> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://socialhead.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to enable Conversion API for Facebook pixel and Using Test Event Code


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.

|| The Conversion API only available from Standard and above plans.
### Table of Contents

1. [__What is the Facebook Conversion API?__](https://socialhead.crisp.help/en/article/how-to-enable-conversion-api-for-facebook-pixel-and-using-test-event-code-1r2cqnm/#1-1-what-is-the-facebook-conversion-api)
2. [__Why Use the Conversion API?__](https://socialhead.crisp.help/en/article/how-to-enable-conversion-api-for-facebook-pixel-and-using-test-event-code-1r2cqnm/#1-2-why-use-the-conversion-api)
3. [__Step-By-Step Guide__](https://socialhead.crisp.help/en/article/how-to-enable-conversion-api-for-facebook-pixel-and-using-test-event-code-1r2cqnm/#1-3-step-by-step-guide)
* [Enable Conversion API](#3-enable-conversion-api)
* [Use Test Event Code to Verify Tracking](#3-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__](https://socialhead.crisp.help/en/article/why-conversion-api-server-side-api-is-so-important-jzp3cv/) for more information.

# 2. Why Use the Conversion API?

By integrating Conversion API, 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.

1. Please access the URL: [\_\_https://business.facebook.com/events\_manager2/list/pixel/](https://business.facebook.com/events_manager2/list/pixel/**enter)[PixelID]\_\_

|| [PixelID]: the pixel ID that you connected with our app

You will be redirected to the page as follows:

2. 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

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1rdg955.png)

3. After that, please copy this token

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1h7dxvs.png)


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

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1u2voxb.png)


### Use Test Event Code to Verify Tracking

1. After enabling Conversion API and successfully creating a Facebook Pixel, a popup will appear prompting you to test events.

* Click **Go to Test events** to start testing immediately
* Or, you can test later by clicking **Edit** on the pixel you want to test and opening the event testing section

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1nsxrp1.png)

2. On the **Edit facebook pixel** screen, please click on **Start testing event** to begin
![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_6eqbyq.png)

3. Upon clicking, you will see a step-by-step modal to walk you through the testing process

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_lbundt.png)

###### Step 1: Get test code

* Open Meta Events Manager at: [\_\_https://business.facebook.com/events\_manager2/list/pixel/](https://business.facebook.com/events_manager2/list/pixel/**enter)[PixelID]\_\_/test\_events
|| [PixelID]: the pixel ID that you connected with our app

* In the **Test Events** tab, copy the **Test Event Code**
![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1fbt87w.png)

* Return to our app and paste the code into the **Test code** field
* Click **Next** to continue

###### Step 2: Trigger events

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1jrnu0r.png)

* Click your website URL to open your storefront
* Perform any actions that trigger your events (for example: searching, viewing a product, adding to cart)
* Once done, return to the testing modal and click **Next**.

###### Step 3: Verify in Meta

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_19apcw7.png)

* Go back to the **Test Events** tab in Meta Events Manager
* Check whether the events you triggered appear in the event list

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_i63c9l.png)

Our app tracks 6 events through Conversion API: **Search**, **View content,** **Add to cart, AddPaymentInfo, Initiate checkout & Purchas** events.

You will see the events are tracked with the connection method is Server, it is Conversion API.

Once you’ve confirmed that events are tracking correctly:
* Select the confirmation checkbox
* Click **Next** to proceed

###### Step 4: Testing completed

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1yg160c.png)


🎉 **Congratulations!** You’ve successfully completed event testing.

Click **Done testing** to finish the process. Your Conversion API setup is now verified and ready for use.


# Important Notes

* ⚠️ **Remove the Test Event Code** after testing by clicking **Done 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__](mailto:support@socialhead.io).