β Available on the following plans: Pro, Agency, Business
π Not sure which plan you're on? Check your subscription here.
Intro
The Meta Pixel is a convenient method to track users in your flow and use that data to optimize your ad campaigns. However, since the Meta Pixel sends its data via the browser, it's often blocked by ad-blocks or firewalls, which reduces the quality of your tracking.
The Meta Conversions API mitigates that problem by sending the same events through another route β an API. Heyflow's native Meta Conversions API integration also allows you a more accurate field mapping, thus increasing the score of your Meta Event Match quality.
π Learn more about the FB Conversions API in this Meta Business help article and in the Meta Developers Documentation.
In this guide, you learn how to set up the Meta Conversions API with Heyflow to more reliably track your users' behavior step by step:
Step 1: Set up the Conversions API
Go to your Meta business manager and navigate to the Events Manager. In the list of data sources, you should see your existing Pixels.
β If you have not yet created a Meta pixel or data source, take a look here and create one, as it is essential for the Conversion API setup.
The Meta Conversions API is designed to extend a Pixel's tracking. Click the Meta Pixel you'd like to track and click on the Settings tab and scroll down to Conversions API.
Click On Generate access token and copy the generated access token.
Step 2: Connect your heyflow
Now, go to your heyflow and navigate to Integrate > Analytics. In the list, click the Meta Conversions API and paste the copied access token into the Access Token field.
Also, copy and paste the ID of your pixel into the Pixel ID field. You can find your Pixel's ID at the very top of the Pixel Settings in the Meta events manager.
Click on connect to save the integration.
π If you haven't already, it's reasonable to also activate the Meta Pixel integration in Heyflow where you simply insert the Pixel ID. We will automatically de-duplicate the events so events are only tracked once. This is not necessary for the Meta CAPI integration though.
Step 3: Testing
Now, go back to your Pixel in the Meta events manager and go to the Test events page. Here, copy the Test ID from the Test server events section. Insert this test ID in your heyflow's Meta Conversions API settings into the Test ID field.
Save the changes and publish your flow.
β The Test ID changes every few hours. When you return to testing, make sure to use the current test ID.
Now visit your recently published heyflow in another window or tab. On the Test events page, you should see a list of events, like this:
Here, we have set up both the Conversions API and the Pixel which is why Meta receives all events twice. However, Meta deduplicates events received multiple times, based on the Event ID.
In the list, you also see Received From
, which can be either Browser (Pixel) or Server (Conversions API). Browser events are recorded almost instantly. Server events need a few seconds to come in.
Step 4: Set Live
Testing looks good? Awesome! To set the Meta Conversions API live, simply remove the Test ID from your integration settings, save the changes, and re-publish your heyflow.
Congrats, your heyflow's Conversions API is live π
Step 5: Map your data fields (Optional)
To enhance event quality and gain more flexibility in Meta reporting, you can now map Heyflow fields directly to Meta Conversions API (CAPI) parameters.
β
This mapping feature allows you to control which customer information is shared with Meta, ultimately helping improve event matching quality and advertising performance. Benefits of field mapping include:
Matched events can be used for ads attribution and ad delivery optimization.
Unmatched events cannot be used for attribution or optimization, but still contribute to basic measurement.
The higher the event match quality, the better Meta can track conversions and optimize campaigns.
π‘ Examples of high-quality information parameters are email address, phone number, first and last name. We already send the IP address automatically.
What you'll need to be able to use the field mapping function:
How to activate the field mapping in your Meta CAPI integration:
Ensure the Meta Conversions API is correctly connected in your flow.
βAssign a System Label to each block that contains data you want to map. This is a required step to make the fields selectable in the Heyflow fields.
βGo to the Field mapping tab within the integration settings. Choose the relevant Heyflow fields (e.g., email) and map it to the appropriate Meta CAPI fields (e.g., Email).
βClick on Save changes and publish your flow again to activate the mapping.
Bonus: Custom Event Tracking
PageViews are tracked automatically. But you can track a lot more events with Heyflow. To set up tracking for buttons, picture or multiple choice, go to the Build page of your heyflow, click on the block you want to track, and go to Tracking in the left sidebar. Activate Track button click and enter an event name below.
If you name your event one of the Meta Standard Events, like Contact or ViewContent, Meta will recognize it as such. If you name it anything else, it will get tracked as a Custom Event.