Meta Pixel
Connect your store to the Meta Conversions API for Server-Side tracking
The Meta Pixel App creates a server-to-server connection to post tracking and sales attribution metrics to the (Facebook) Meta Conversions API. Server-side API tracking is the method recommended by Meta to ensure the highest degree of accuracy in the data sent to the Meta Pixel.
Meta Pixel is an installable App. Enable it from the Apps menu on your store.
Set Up Meta Pixel
To connect your store to the Meta Conversions API, navigate to Apps > Meta Pixel > Settings.
Select Add Pixel
Input the following values obtained from your Meta Business Manager account:
Pixel ID (Dataset ID)
Access Token
Select Save.
You may optionally add additional Meta Pixels to your store.
Meta Settings
Once you have added one or more Meta Pixels, choose the Default Meta Pixel to be used in your store. Configure the following optional settings
Enable Delay Order Confirmation - add a 10 minute delay after purchase events, to ensure that orders are completed including any upsells before being posted to the Conversions API.
Enable Test Data - allow Test Orders data to be posted to the Conversions API.
How Meta Pixel App works
The Meta Pixel app automatically adds your Meta Pixel JS to the storefront. Additionally, the app creates the following attribution metadata fields in your store, which correspond to values required by Meta Conversions API to track events accurately:
fb_fbc (required) - value from Meta Pixel JS to capture the click.
fb_fbp (required) - value from Meta Pixel JS to capture the click.
fb_pixel_id (optional) - pass an alternative Pixel ID to specify a different Meta Pixel than the app's Default to be used in the Meta Conversions API post.
fb_test_code (optional) - this field can be used to pass test events, but should only used by developers. Additional documentation - Meta.
For additional documentation about Click IDs and related tracking parameters, see Meta documentation
Use Meta Pixel with External Checkouts
When creating orders via externally-hosted marketing funnels and checkouts integrated to the Admin API or the Campaign API, it's important to pass the required metadata on orders to ensure that the Meta Conversions API receives the proper attribution elements.
fb_fbc (required)
fb_fbp (required)
These represent browser cookie values generated by the Meta Pixel JS, installed on your externally-hosted site. Capturing these values and appending them to orders as attribution metadata, will post them to the Meta Conversions API on order events.
Last updated