In this article we’ll look at the various ways you can add a Facebook pixel.

There are 3 ways to add external scripts inside LeadsHoon

1 Account Level Scripts: Scripts and pixels you want to use in multiple decision trees. This can be client tracking codes

Add Scripts at Account Level
Add Script to Your Decision Tree

2 Decision Level Scripts: Script and pixels you want to only use in ONE decision tree. Generally these will be decision tree specific scripts such as tracking pixel for testing or decision specific CSS.

Press the ‘Gear’ icon
Add Decision Tree Level Script

3 Node Level Scripts: Scripts and pixels want to fire or work at a node level. In the case of Facebook these will be Facebook events such as view content, leads etc.

You can add scripts on EVERY node
Add a script or postback URL

Below are examples of the default Facebook Standard Events, you can check more Facebook Events on the link below

Facebook Standard Event

fbq('track', 'ViewContent', {
  content_name: '{_c_dt}',
  content_category: '{_c_node}',
  content_ids: ['{_c_question}'],
  content_type: '{_c_answer}'

You can also use the lead event when you’re captured a LEAD.

fbq('track', 'Lead', {
  content_name: '{_c_dt}',
  content_category: '{_c_node}',
  value: 0.50,
  currency: 'USD'

Facebook pixel works on every page and node so these are applied to the whole decision tree.

You can add the pixel at the decision level or global level and then SELECT the pixel to be applied to each decision tree

Where to Find Your FaceBook Pixel

Login into Facebook Business Manager and go to Pixels…

Copy Facebook Pixel:

Paste it inside Global Scripts or Decision Tree Scripts as shown above…