Introduction:
This guide breaks down how to add third-party tracking scripts in LeadsHook. These scripts are generally used for tracking and analytics purposes.
Prerequisites:
- An active LeadsHook account
- Basic understanding of tracking scripts or pixels
Discussion:
Most tracking scripts consist of two parts:
- A base or global script – This is the main tracking script, like the Google Analytics script or Facebook Pixel.
- Node or action-specific scripts – These fire specific events based on user actions within the decision tree.
LeadsHook provides 3 ways to add 3rd Party Scripts
1. Global Scripts
If there are scripts that you’ll use or apply to more than one decision tree then use the Global Scripts feature. The most common use is for a base pixel so you can apply to multiple decision trees and all nodes inside each decision tree.
Almost always, global scripts are “SET and FORGET”.
Repeat the above steps and add all of your global scripts. This will make life easy when creating decision trees.
Add Global Scripts to Your Decision Tree
Go to your decision tree and select the Global scripts you want to apply…
2. Decision-Tree Specific Scripts
There is no need to apply decision tree specific scripts. They will be automatically applied.
3. Node Level Scripts
You can fire any js script you want…
Types of Events
Enter: Fire when node is loaded (i.e your prospects, leads and customers see a node)
Exit: Fire when someone exits a node
Select: Fire when someone selects an answer
Deselect: Fire when someone deselects an answer
Segment.com Examples
When Your Prospects LAND on your Decision Tree…
When Your Prospects & Leads Complete your Decision Tree…
Use of Custom Fields Inside Events
Conclusion:
Third-party tracking scripts allow you to monitor and analyze user interactions within your decision trees. By strategically implementing these scripts, you can gain valuable insights that can guide your optimization efforts.
FAQs:
- Can I use multiple tracking scripts within a single decision tree?
- Yes, you can use multiple scripts at both global and decision-tree specific levels.