Table of contents
Not only is Google Analytics 4 knocking on our marketing doors anymore, but also privacy and cookie issues. These are two very hot topics in recent months, of which the topic of cookies has been somewhat covered by GA4 and should not be forgotten! In this article, we will look at a tool that is worth becoming friends with because, in the near future, it will replace the well-known Facebook Pixel (Meta Pixel). But let’s start at the beginning…

What is a conversion API?
ConversionAPI is a tool with which we can collect data on how users interact with our website or mobile app and feed it to Facebook’s advertising platform to optimize our ad campaigns. This allows us to collect the data we need for reporting, ad targeting, and optimization and improve the performance of our campaigns.
Facebook plans to replace the current Facebook Pixel Conversion API in the future, but there is no exact date as to when this will happen. Various dates have been mentioned so far, but one of them says it will happen in 2023. However, why is there such a need?”
This is a direct consequence of activities related to privacy policy and cookies. Facebook’s Pixel relies on so-called „third-party cookie” data, which is going away and will soon no longer be available. It is not known today that less data automatically translates into poorer campaign performance, but the Facebook and Instagram ad algorithms themselves perform much worse. To prevent this, Facebook has implemented a solution, which is precisely the Conversion API, which is a different way of connecting Facebook to your website than before.
Facebook pixel vs. conversion API
How does Facebook’s Pixel work?
This is a snippet of code that you place on your site either directly or using Google Tag Manager
Then, when a user accesses your site, the Pixel script is run, and a specific cookie is assigned to that user. From that moment on, every action on your site (e.g., form fills, clicks, transactions, etc.) will be recorded and sent to Facebook, and we will see this information in the Ads Manager. That is, as you can see – everything is based on the data collected and transmitted by the cookie.
How does this whole process look? When a user visits your site, it must be launched from the servers on which it is set up. We can observe what actions are performed on it from both the browser and the server. This is where the Conversion API, which sends data from the server to Facebook, comes to the rescue. The API, just like Pixel, gives each user an individual ID, which allows it to track further activities on our site.
It might seem that the two tools do the same thing; however, this is not necessarily the case. Pixel uses a browser, while the API uses a server.
Pixel uses a browser, while the API uses a server.
Benefits of using the conversion API
If this still doesn’t convince you and you’re wondering if it’s worth it to implement API event tracking for yourself (or your clients), I’d like to show you a few more reasons why API can benefit you more than Pixel:
- No privacy and cookie issues
Facebook’s conversion API is completely cookie-independent, so tracking will not be blocked by any ad blockers. Properly implemented, the API also works per all legal regulations regarding privacy policies.
- Tracking conversions across multiple platforms and devices
ConversionAPI allows you to collect and report conversion data from various sources, not just Facebook. Additionally, it makes it much easier to analyze traffic if it comes from different devices.
- Analysis of key conversions
Conversions at the final stages of your funnel are often made not on the site, but, for example, by phone or through an app. The API allows you to send these conversions to Facebook to better optimize your advertising efforts.
- Full control over your data
The Conversion API allows you to customize how data is collected and transmitted to suit your needs and preferences. In addition, the data collected by the conversion API is stored on your own server, giving you full control over it.
We won’t kid ourselves. The conversion API also has its drawbacks. The main one is the somewhat complicated integration, which sometimes requires programming expertise or cooperation with developers, and this often comes at an additional cost. However, in the final analysis, you’ll probably agree that the advantages outweigh any difficulties.
Will-my-events-duplicate?”
Given that Pixel and the conversion API work very similarly, one conclusion may come to us—quite correct, by the way—our events will duplicate!
Unless… you configure event deduplication! Let me explain it to you in the simplest possible way :).
Event deduplication associated with Pixel and Conversion API is the process of eliminating duplicate conversions recorded by these two Facebook tools. Duplicate conversions can occur when Pixel and Conversion API record events simultaneously or in quick succession, which can lead to skewed analysis and optimization of ad campaigns. To avoid this problem, Facebook uses an event deduplication mechanism to eliminate duplicate conversions.
For everything to work properly, we must pay attention to the configuration process and ensure that the collected events have the same identifiers and parameters. This way, the system can assess whether the signal it receives from the server has not already appeared and is sent by Pixel, and will ultimately leave the event information from only one tool.
How to deploy Facebook’s conversion API?
We have three ways to implement this:
- through partner services (e.g. WordPress, WooCommerce, Zapier, Magento, Shopify),
- by manually adding code to our site,
- by using the conversion API gateway.
Today, I’m going to show you the two simplest ways: integration using a plugin and using partner services.
Integration using the PixelYourSite plugin (for sites built on WordPress)
- In your WordPress cockpit, install and activate the PixelYourSite plugin.
- Return to „Event Manager„, find your Pixel ID, and copy it.
- Now go back to the PixelYourSite plugin panel and paste there the Pixel copied earlier in the field „Your Facebook Pixel„
- Next, in the „Event Manager” panel, we click on „Settings” and we need to find the section related to „API conversion„. You will perform the next step only if you have administrator privileges.
- Click on the „Generate Access Token” button, copy it, then go back to the plugin panel on WordPress and paste the token into the „API Token.”
- Finally, don’t forget to enable the „Enable Conversion API” option at the very top of the plugin panel.
Bravo, done! Now, all that’s left is to test if everything works as expected.
- We return to the „Event Manager” and go to the „Testing Events” tab.
- Paste the code „test_event_code” in the plugin panel and then save the settings.
- Open your site in a separate tab. You will see correctly received events in the event manager if everything works correctly.
- Remember to remove the test code from the PixelYourSite plugin panel after the test!
Integration via partner service (using WordPress as an example)
- In Facebook’s „Event Manager„, locate the „ConversionAPI” section and click „Select Partner„.
- Choose (in this case) the WordPress service, and in the window that appears to you, press the „Create Access Token” button.
- Copy it, move on, and then download the plugin to WordPress.
- In the WordPress dashboard, in the „Plugins” section, click the „Submit plugins to server” button at the top of the screen.
- Add the downloaded .zip plugin and click „Install.” After installing it, click „Activate Plugin.”
- Return to „Event Manager„, copy the Pixel code and paste it in the plugin panel in the Pixel ID field.
- Next, enable „Enable Advanced Matching” and another „Enable the Server-Side API to Send Events…„.
- Copy the access code and paste it into the box below.
- Save the changes and run the test again in the event manager.
Start using Facebook’s conversion API!
Our specialists will help you integrate Facebook’s conversion API so that you can effectively analyze and optimize your advertising campaigns on this platform.
As it turns out, the API is not as scary as they paint it :). Keep in mind, however, that in this article I showed you the two simplest ways to pass the test if your site is set up on WordPress. If you use other platforms or partners, the integration may look slightly different and more difficult. But don’t leave it to the last minute, and if you need help implementing a conversion API, you can always apply to digital marketing agency
Was the article helpful?
Rate our article, it means a lot to us!