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: […]
Category: Scripts
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 […]
How To Split First Name and Last Name
Introduction: If you are capturing the lead’s full name in one custom field and wanted to display ONLY the first name on the next node, add the below script on the node level. Please note:The example script above ‘{full_name}’ is where you are saving the leads full name. You need to replace this with the […]
Do calculations using a script
Introduction Step-by-Step Instructions: Step 1: In a Q&A node, add a script Step 2: Give it a name, for type choose script, and set it to fire on exit of the node Important: DT.setField function cannot be used on the last node for V2 DTs. Inside the script section we can define our script. For example: […]
Change the DT title using a script
Introduction Step-by-Step Instructions: In the DT level scripts: Step 1: Create a new script above the closing </head> section Step 2: Simply copy this code: Change the text in double quotes to be your new title.
How to Address Norton’s… “This is a known dangerous website” Error Message!
Introduction This message appears often enough with false positives that Norton/Symantec have a special website to report this to get your domain/site whitelisted! As a first step, please run a malware test and confirm there are no issues. If you using self-managed platforms like WordPress then these issues can happen. Use this free tool to […]
GTM Custom Events
Introduction Google Tag Manager Custom Events are used for tracking interactions that might take place on your website or mobile app that isn’t handled by standard methods. You can create your own event and assign it to a trigger. Basically allowing you to script Google Tag Manager how you like. Reference: You can change the […]