Digital Marketing
Meta Pixel and Conversions API
17 min
overview & purpose meta pixel and conversions api track customer interactions on your storefront and send event data to meta (facebook) for accurate campaign performance analysis meta pixel captures events directly from the customer’s browser, such as page views, product clicks, and purchases conversions api (capi) sends events from your server to meta, ensuring reliable tracking even when browser tracking is limited these tools improve event accuracy, campaign insights, and sales attribution , helping admins and marketers understand how ads drive conversions benefits improves the accuracy of campaign performance tracking provides reliable insights into how ads contribute to sales how to integrate read the below systematic guide to integrate facebook pixel with your onprintshop website 1 login to your f 1 login to your f acebook account account visit the facebook site and log in to your account 2 2 configuration in admin panel configuration in admin panel on your admin panel, go to the store configurations >> external service settings >> digital marketing tab >> facebook pixel>> ‘edit’ option in the settings section, locate the event tracking method option you need to select one of the following meta pixel it tracks events from the customer’s browser via the pixel conversions api (capi) – it sends events from the server for more reliable tracking meta pixel + conversions api it uses browser and server tracking for improved accuracy and event matching now, let’s look at how it will work if you select meta pixel first, enter the pixel code a pixel code bridges your website and facebook/meta ads , helping you understand customer behavior and improve campaign performance to generate the pixel code , go to meta events manager click connect data and select web click next select an existing dataset , search by name, or create a new one enter a name for your pixel, then click create pixel this creates a new id that can be viewed in the overview section of that particular id then, click on set up meta pixel then, choose install code manually, i e , manually add pixel code to the website next, copy the pixel code to the admin panel facebook pixel event this feature allows admins to map storefront actions (e g , search, add to cart, purchase, view category, initiate checkout) with facebook pixel events (e g , lead, complete registration, contact, view content) for accurate event tracking and reporting in meta ads manager lastly, enable/disable the debug mode in the admin panel and save the configuration next, let’s review how it will work if you select conversions api (capi) facebook pixel event this feature remains the same as meta pixel's now, enter the dataset id this id is required to associate events with the correct data source in meta events manager admins can find this in meta events manager > datasets > pixel settings once the dataset id is added, the system will send events to the mapped pixel for accurate tracking further, enter the access token this is the access token for the conversions api, allowing the server to send event data to meta securely admins can generate this from meta events manager > datasets > settings > conversions api > generate access token next, select the dataset and click on generate access token copy this code into the access token column in the admin panel lastly, enable/disable the debug mode in the admin panel and save the configuration now, let’s review the selection of meta pixel + conversions api first, enter the pixel code the steps for generating a pixel code remain the same as those of meta pixel the other steps, viz , facebook pixel event, dataset id, access token, and enabling/disabling of debug mode, remain the same as those for the conversions api , and you can refer to the screenshots provided above once you have successfully integrated meta pixel and conversions api (capi) , you can more accurately, track customer actions on your storefront (e g , product views, add to cart, purchases) improve event matching since browser (pixel) and server (capi) data are used together measure ad performance in meta ads manager with reliable data build custom audiences based on tracked actions for retargeting campaigns optimize ads for conversions, since meta receives more complete and accurate signals