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 […]
Articles Tagged: javascript
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 […]
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. […]
Using Google Sheets as a lookup table
Its possible to use server side javascript to process an API call in LeadsHook Basically you send a request to the GS server with a parameter to search with. Then the script will search a given column where the parameter matches. When it finds the matching column value – the whole row is retrieved, converted […]
How to Add External Buttons Such as For Affiliate and Ecommerce Offers
In this article you’ll learn about to add an external script. USE CASE One of the most effective ways to sell online is to help your website visitors or leads to self-select for themselves the best offer, product or solution. Think of this as a virtual sales person similar to someone you’d help you in […]
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 […]
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. […]
How to fix Facebook ‘em: email invalid’ error when using GTM
The error message when viewed from JS Console looks like this: This occurs when ‘Use Advanced Matching’ is used for Facebook pixel. This adds an extra line: em: ‘insert_email_variable,’ to the FaceBook Pixel. => We’ll update the GTM container soon so this update won’t be needed anymore. HOW TO FIX THE ERROR Step 1: Login into […]
JS Console Error Message: “Cannot read property ‘destId’ of undefined”
REQUIRED Please go through STEP 2 in the following post to learn how to see error messages: How to report issues for a fast response from support How to… (for specific issues) Please help us with clear descriptions so we can help you. When reporting issues it’s important to explain things well. The best is to […]
How to report issues for a fast response from support
Please help us with clear descriptions so we can help you. When reporting issues it’s important to explain things well. The best is to report via a video. OPTION 1: How to report via video (fastest for you and also easiest for us to see issues). You can use a free tool like Jing: https://www.techsmith.com/jing-tool.html 2 Jing […]