Varos Glossary

Facebook CAPI

Launched in response to Apple's privacy-focused iOS 14 update, the Facebook Conversions API (CAPI) is a form of front-end server-side tracking that allows advertisers to more effectively gather user data. It does this by tracking server-side events — basically any user action that leaves a data trail. CAPI essentially allows marketers, advertisers, and brands to collect reliable, accurate, and insightful data about ad performance and user behavior without violating user privacy in the process. 

How Facebook CAPI Differs From Browser-Side Tracking

Browser-side tracking, as the name suggests, collects data directly through a user's web browser, typically through the use of a third-party tracking cookie. In addition to behavioral and engagement data, browser-side tracking — also known as client-side tracking — also tends to collect demographic and location data. 

Because server-side tracking utilities like CAPI cannot directly access a user's web browser, they do not directly harvest private data. These utilities are thus a viable way of tracking behavior even when a user has disabled third-party cookies and data tracking.Server-side tracking also tends to be more secure than client-side tracking, as data is transmitted directly from the web server to Facebook's servers rather than leveraging the user as a middleman. 

Why CAPI Marketing is Critical for D2C Brands on Shopify

Caption: Facebook's CAPI can be invaluable in filling out and contextualizing your Facebook Ad data. 

eCommerce is a data-driven field — the more data you can collect about your customers and their preferences, the better off you'll be. With that in mind, the fact that the Facebook CAPI allows you to accurately track conversions even in the presence of privacy-focused limitations is an enormous boon. The CAPI also gives you a big-picture vision of the customer journey, allowing you to track each user from beginning to end in order to develop a better understanding of them. 

Conversions API vs Facebook Pixel

Facebook's Conversions API and Facebook Pixel are very closely integrated with one another, so much so that they're occasionally mistaken for being the same tool. While it's true that you need to have a Facebook Pixel on your page to leverage Facebook's CAPI, the two tools differ from one another in a few key ways. First, Facebook Pixel identifies Facebook users that visit your page while logged in — CAPI marks each visitor with their own unique, anonymized ID.

Facebook Pixel also collects and reports data back to Facebook parent company Meta using browser-side tracking, while the CAPI reports data directly to you via server-side tracking. 

How to Set Up and Configure CAPI Advertising

Caption: Varos allows you to filter and track a wide range of advertising and behavioral data, making it a perfect companion to Facebook's CAPI. 

  1. Go to https://business.facebook.com/ and set up a Facebook Business Manager Account. 
  2. Create a Facebook Pixel. You'll be given a small snippet of automatically generated code. 
  3. If you're using a Shopify store, navigate to the Online Store section of your dashboard, then select Preferences. There, you should see the option to add the Pixel to your website.  
  1. If you're using a different eCommerce platform or self-hosting, you may need to install a Facebook plugin or manually insert the Pixel code. 
  1. Use Meta's Facebook Pixel Helper to verify that your Pixel is working correctly. 
  2. Navigate to the Ads Manager section of your Facebook Business dashboard. 
  3. Select "Conversions API" and follow the on-screen prompts for setup and configuration. 
  4. Define the Events you want to track as follows: 
  1. Find your Pixel ID in the Facebook Ads Manager's Pixels tab. 
  2. Go to the Events Manager tab of your Facebook Business dashboard. 
  3. Click on "Create Event," then select your Pixel ID. 
  4. Set the event's parameters and triggers, then add the code you're provided with to your website or app. 
  5. Test the event to ensure it's working as intended. 
  6. Rinse and repeat as necessary.