Introduction: Sometimes you might need to set a maximum number of available choices when using checkboxes. For example if you had eight choices and you only wanted a max of three of them accepted! For this purpose we will use some custom JavaScript to count how many checks are allowed. Using the custom page node, […]
Category: Scripts
Complete Guide to Scripts
In this article you’ll learn about the scripting power of LeadsHook Your biggest gains in marketing often come from testing new or even what appears as a ‘dumb’ idea. Sometimes the standard features won’t allow you to execute your test ideas. This is where you are use scripting capability of LeadsHook to implement pretty much […]
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 […]
How to Add a Pop-Up Form to Your Decision Tree
In this article, you’ll learn how to add a pop-up (modal) so your form appears above the underlying question. Example: Test this Sample Pop-Up Decision Tree: https://marketing.leadshook.io/survey/l5Dt9bDEjmciUkDYu5cXiK4xJDye1Sa29mTISTTw Short Video to Explain Pop-Up Decision Tree Example (Please send your developer or technical resource to this page or contact LeadsHook for any custom requests). Download the sample […]
Grabing Lead data using Leadshook endpoint via RESTful API
PLEASE NOTE: This API document is NOT for LeadsHook’s API and Webhook nodes. The LeadsHook API is designed so you send and grab data directly out of LeadsHook using another app or server. Working with APIs is best done with the help of a developer Introduction: The LeadsHook API is mainly used to ‘grab’ your […]
A simple way to prevent searching engines from indexing your decision tree
I. To prevent most search engine web crawlers from indexing your decision tree, Add the following script under admin and use it for any/all DTs you want. II. To prevent most search engine web crawlers from indexing a page on your site, place the following meta tag into the <head> section of your decision tree: […]
Google Places – extra Address verification script
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. In a question node of […]
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. Introduction: Step-by-Step Instructions: Step 1: […]
FB Hash
First we need to add our scripts to the global or DT level scripts section. ( In the DT settings ) That means the FB pixel and the js-sha256 library. Both above the <head> Like so: The library tag to copy/paste looks like this: In a node you want to track setup a node level […]
How to Encode Custom Fields being passed via Exit URL redirect from results node.
Introduction This guide will enable you to encode the custom fields being passed via the Results node Exit URL going to your External thank you page. In some cases you’ll need this to comply with your ad platform’s data privacy requirements. Example: Here’s a violation notice from Facebook… Take note, Leadshook will encode it on […]