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.
Setting up Your Facebook Pixel
First, set up your Facebook Pixel if you haven’t already done so. Facebook has a solid tutorial here. Your code will look something like this:
Install the pixel code in the way most appropriate to your site, e.g. by direct embed 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. For example:
- 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 (e.g. 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.
If you need help, send us an email, and we can walk you through it.