LeadsHook Integration
How to integrate AnyTrack with LeadsHook Decision Tree platform
Last updated
How to integrate AnyTrack with LeadsHook Decision Tree platform
Last updated
Copyright Anytrack 2019
LeadsHook is a Decision Tree platform (Comparable to a Quiz) that allows you to qualify, filter and bring your leads to provide you relevant information.
The Decision Tree is an interactive form, generated through a JavaScript. Therefore, there is an inherent complexity to pass life tracking information that will be further used in third party systems like lead management platform - i.e. LeadsByte.
LeadsHook is a decision tree making software delivered as a software as a service. Makes Your Marketing Enticing & Relevant Create interactive experiences across your entire customer journeys using decision trees. Individualise your lead magnets using text, images, videos, charts, and calculations!
Visitors land on your landing page
Visitors Clicks to start the Decision Tree
AnyTrack AutoTrack an Outbound Click Event to your analytics and pixels.
Visitor goes through te decision tree
Upon form submission:
AnyTrack AutoTracks the Form Submission Event to your Analytics and pixels
LeadsHook pushes the lead data to external tools such as:
Email marketing software
Lead management platforms
API, Zapier, Integromat etc..
When the lead is accepted by the Lead management software:
The Lead Management software fires the AnyTrack Postback URL with a Lead Event
AnyTrack records the Lead conversion and fires the event to your analytics and pixels
When the lead is "sold" to a lead buyer
The lead management software fires the AnyTrack Postback URL with a CompleteRegistration Event
AnyTrack will automatically create and pass a click_id
value into your decision tree.
You are responsible to update the JSON payload passed to your lead management system with the click_id
data (code provided below).
If you don't have a property in AnyTrack, it's time to create it following the on-screen instructions. Watch the tutorial here.
Log in your LeadsHook account
Open the Script Settings and add a new Script.
Paste the AnyTrack TAG in the script
settings of leadshook.
Save
Navigate to Admin > Custom Fields > Form
Add a new Custom Field following the steps below
Open the Decision Tree and add the newly created field to your form.
The click_id
custom field is crucial to the tracking flow as it will enable LeadsHook to store the click_id
value and pass it back to the AnyTrack Postback URL.
If you are using Zapier to push your leads to your lead management system and if you have created the custom field click_id
you will immediately see the parameter in your Zaps.
You will then have to map the field to the appropriate field in your lead management system.
If you are using LeadByte, you should pass the parameter to one of the additional parameters such as c3
or you can create a custom parameter in leadbyte if you want to use it.
In the example below, you can see that we've added "c3":"{click_id}"
key value pair to the JSON file configured to be sent to LeadByte.
After you pass the c3
parameter you LeadByte you should create a new LeadByte integration in AnyTrack and collect your purchases and leads directly from LeadByte.
If you want to forward your leads directly to AnyTrack, follow the setps below:
Create a custom affiliate network (name/url)
Set the Postback placeholders according to the following guidelines:
Upon saving you should get the following postback URL
In LeadsHook:
This step will allow you to fire a Form Submission Event to AnyTrack when someone completes the Decision Tree.
If you are using Zapier, you can skip this part and jump to the Zapier integration here.
Open the Decision Tree
Select the node which represents the final step of the quiz. i.e. where the final form submission occurs.
Add a script:
Name it : AnyTrack Form Submit
Type: Postback URL
Event: Enter
Paste the AnyTrack Postback URL (as provided by AnyTrack)
Save & Exit
You can now test your decision tree and see the conversions in your AnyTrack account.
You can also see the exact conversion payload in the affiliate network debugger tab.
If you use zapier, you can import the following template which will trigger a form submission event for each new lead recorded in LeadsHook.
Click on the Zapier template link
Update the authentication with your own LeadsHook account
Update the Webhook URL with your AnyTrack Postback URL (the URL until the question mark)
AnyTrack's affiliate network debugger lets you see the conversion data in near real-time. In the debugger you can see both valid and invalid conversions.
The most common invalid error is when the click_id
value isn't passed to AnyTrack.
You did not create the click_id
custom field in Leadshook
You did not add the click_id
custom field to the decision tree form
You changed the postback URL query strings.
You did not add the AnyTrack TAG to both the site and the Decision Tree.
You did not update the json
parameters to pass the click_id
to the lead management API
call.
You did not update your Zap to pass the click_id
parameter
You did not update the fields to be passed back to AnyTrack to include the click_id
.
Do not change the query parameters as it will prevent conversions from being synced.
AnyTrack Field
Placeholder
Meaning
Click ID
{click_id}
the anytrack click id
Commission
0
the value of the lead
transaction_id
{lead_id}
the Lead ID set by Leadshook
brand_name
{_c_dt}
the decision tree name