How to add Facebook Conversion Pixel Tracking

The Facebook Pixel lets you track your visitors’ actions as they browse your site, including engagement with Digioh boxes. To use the Facebook Pixel with your Digioh lightbox follow these instructions.

Create Your Pixel

The first step is to set up your Facebook Pixel if you haven’t already done so. Facebook has a solid tutorial here. The pixel code you get will look something like this:

Install the pixel code in the way most appropriate to your site, e.g. by direct embed on the page, or through Google Tag Manager. By default, the Facebook pixel will track a “PageView” event on every page.

Additional Facebook Tracking via Digioh

Let’s say you want to track conversions (form submissions) on a particular box. In Box JS After Submit, simply add:

fbq('track', 'CompleteRegistration');

You can use any of the standard Facebook events instead of CompleteRegistration, whatever is appropriate to your use case. Couple of examples:

  • Box JS After Display: fbq(‘track’, ‘ViewContent’); //Track that the user saw a promotion
  • Box JS After Submit: fbq(‘track’, ‘Lead’); //Track the user filled a lead form

You can also track any custom event you want, though these are a little trickier to work with inside Facebook:

fbq('trackCustom', 'MyCustomEvent');

If you have multiple Facebook pixels on your site, for example if you work with an advertising agency that has their own pixel, we recommend using “trackSingle” instead. Otherwise, events will be sent to ALL trackers. See here for more information.

Need any help? We are standing by! Send us an email and we can setup a call to walk you through it. We are also more than happy to install it for you ????