Loopback to 2nd node in any DT from the header/footer section

If you are keen on using the header/footer settings, you probably are aware that you can frame your DT with a menu and custom style too. Normally these menu items are external links, leading out of LeadsHook. However, its actually possible to link to the second node of any DT using the script below. This […]

Read More

Using Google Sheets as a Lookup Table

In this article you’ll learn how to use Google Sheets as an external database. You can make API calls from LeadsHook using the API node and SAVE the returning data into custom fields. There are 2 methods available… METHOD #1: Easy Method Using a 3rd Party App (Developer NOT Required) In method 1, you use […]

Read More

How to Fire Pixels and Events Based Specific Conditions

LeadsHook provides a great UI for creating your Decision Trees. There are countless features that makes server side scripting easy. Additionally, power users might be glad to know that it’s also possible to go low level and use any HTML/CSS/JS that you might like. In this example we will be showing you how to create […]

Read More

How Capture and Save Http Header Information Into Custom Fields

In some cases, you want to capture http header information into a custom field. Here’s an example to save the referring URL. If embedded this will be the URL of the landing page where the Decision Tree is embedded. Say you have 3 URL’s with one Decision Tree. In this case you would have the […]

Read More

How to calculate the day of the week

In some circumstances you might want to split your Decision Tree into different paths based on the day of the week. So for example Monday through Friday when you are available. While also at weekends when you are not available. create an answer text custom field called ‘weekday’. 2. Add this script to any node […]

Read More

Custom phone number formats

Custom field formats We recently introduced new custom field options when working with phone numbers. {mobile|national} is the default. Its the phone number minus the + symbol and minus the international code {mobile|international} is used when you need the number with + symbol and with the international code. Scripted format For some of our users […]

Read More

How to use Dates and Time Custom Fields in Your Decision Trees

In this article, you’ll learn about the various ways you can save dates, times and perform calculations. Please note: Be sure to use the CORRECT type of field. You should use date, time or date&time custom fields. Add scripts on node… 1) Save Today’s Date Into a Field Add this script on the node… 2) […]

Read More

How to Setup Jornaya – LeadId inside LeadsHook

In this article, you’ll learn how to set up Jornaya-LeadId inside LeadsHook. Learn more about meeting your TCPA compliance using Jornaya-LeadsId here: https://www.jornaya.com/the-data/leadid/ 1. First copy/paste your leadID script into the global level or decision tree level scripts section. Note: If you place the script at the global level, make sure to enable it on […]

Read More

How to Pass a Parameter From a Script to a Custom Field.

If you use custom scripts, sometimes you will want to pass a scripted variable to a custom field. You’ll also learn see a script with conditions where you can update the value of a custom field after comparing 2 values. The syntax looks like this: Note that the first parameter is the custom field name […]

Read More