How to Troubleshoot Common Scripting Problems

LeadsHook is highly suitable for scripting via JavaScript. That includes JQuery and almost every other JS library. Here are some tips to ensure your scripts work without any issues. Loading & Firing of Node Level Scripts If you set your script to fire on enter of a node without a delay, the script will fire […]

Read More

How to Send Node-Level API Requests Using JavaScript

PLEASE NOTE: This script is provided to help you get started. Unfortunately, our free support does not include custom scripts. Any competent JS developer should be able to manipulate this script for your needs. Please contact us if you need help to find a developer. Please thoroughly test before use. BACKGROUND In some cases you […]

Read More

Change the DT title using a script

Normally the project name will be the DT title. The DT title is the text that appears in the browser tab. However, its possible to override this using a script You could change the title at any time. For example node by node. In this example we will change the title for the whole DT […]

Read More

How to Setup “Custom Page” Node

In this article, you’ll get an overview of what is a custom page and how to set it up inside your decision tree. PLEASE NOTE: Custom Page node requires expertise in html, css and javascript. LeadsHook support is limited to the custom page node functionality. We do not provide support for custom code and scripts. […]

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 Add 3rd Party Tracking Scripts Inside LeadsHook

In this article, you’ll learn how to integrate 3rd party scripts inside LeadsHook. The most common use is tracking and analytics scripts or pixels. Scripts Primer For most tracking and analytics scripts there is…1) base or global script or pixeL (like google analytics script or facebook pixel)2) And there is a node or action specific […]

Read More

Troubleshooting Steps

Decision tree not behaving like it’s supposed to? STEP 1: Setup your test environment Please open the JS Console on Chrome browser. Use the keyboard shortcuts. On Windows and Linux: Ctrl + Shift + J. On Mac: Cmd + Option + J. OR Select the Chrome Menu icon, menu -> More Tools -> JavaScript Console. […]

Read More