Tracking Pixels are 1 x 1-pixel images which let you track the actions of your visitors on your website and measure the conversion.

To set this up, you need to:

  1. Setup Facebook Pixel on your website 
  2. Enable Facebook pixel in Chargebee

Setting up Facebook Pixel on your website 

  • Log in to your business account on Facebook and navigate to the Pixel tab under Event Manager 
  • Click Create a Pixel 
  • Fill in information about the pixel and click Create
  • In the pop-up window that follows, choose the option Manually Install Code Yourself 

  • The following window on Facebook will give you the code you need to integrate to your business’ website. Here’s how it’s done:
    • Locate the header section in your webpage code (<head> </head> tags)
    • Copy the pixel code from Facebook and paste it within the header 

Enable Facebook Pixel in Chargebee 

  • Login to your Chargebee site and navigate to Settings > Configure Chargebee > Checkout & Self Serve Portal > Configurations > Advanced Settings > Add domains
  • Here you add the domain of your business, so Chargebee will whitelist them to give them access to subscription and invoice-related information in chargebee.js callbacks and to use conversion tracking via chargebee.js. If you have multiple domains, separate them with commas
  • Navigate to Settings > Configure Chargebee > Checkout & Self Serve Portal > INTEGRATE WITH CHARGEBEE
  • In Header Script, add data-cb-fbq-enabled="true" attribute to enable Facebook Pixel