Please note: This is only applicable for Version 2 decision trees. For Version 1, please refer to this guide: https://www.www.leadshook.com/help/using-leadshook-with-google-tag-manager-google-analytics-4/ In this article, you’ll learn how to set up your tracking in less than 3 minutes! Google Ads, Google Analytics 4, Facebook, Twitter, TikTok & Microsoft Ads! You’ll discover how to access your automagically created […]
Category: Scripts
How to add an auto-next script with a delay
Version 1: Simply add the script below to the body of your node. Version 2: Use the code below for version 2. Set Delay Timeout: You can change the time delay by updating the set timeout time to the desired millisecond time. Please refer to the screenshot below.
How to Add Click-to-Call Button
Introduction HTML5 includes a protocol for making an element clickable and opening the phone app and adding the number to call. This makes it very easy to add a Click-to-Call button in your Decision Tree. Take note, make sure to include target=”_blank” as this is the only way that this would work for IOS users. […]
How to Save Google’s Client ID in a Custom Field
Introduction: This guide will walk you through the process of capturing Google’s cookie and saving the client ID into a custom field. By following these steps, you will be able to successfully store the client ID from Google’s cookie in a custom field named “clientid”. Prerequisites: Step-by-Step Instructions: Step 1: Ensure GA Setup Step 2: […]
How to add a tooltip
Introduction In this article, you will learn how you can add a tooltip. A tooltip is often used to specify extra information about something when the user moves the mouse pointer over an element. Step by Step Instructions LeadsHook provides 2 options to add a tooltip in a node. I. First Option: Using node level […]
How to Pass Data Using setCookie & grabCookie Functions
This guide is provided without our free support because setups vary from business to business. This guide is for a technical audience. Please contact us if you need our technical and development services. In this article, you’ll learn how to pass any data through a cookie. Step 1: Add a script in the node where […]
How to Create a Dynamic Decision Tree
Introduction In this article you’ll learn how to create a decision tree where values can change in real time as your prospects select specific answers… WARNING! The example below has been created using custom page nodes. This will require the help of a developer who knows html, css and javascript (a very common skill set). […]
How to Calculate Time Spent in a Node
Introduction In this article, you will learn how to calculate the time spent in a node. Step-by-Step Instructions: Step 1: Create a custom field named time_enter. Step 2: Create a custom field named time_exit. Step 3: Create a calculated custom field for the time spent. Please do not forget to include the formula as shown […]
Passing Data from Your Website Directly to LeadsHook!
This guide is provided without our free support because setups vary from business to business. This guide is for a technical audience. Please contact us if you need our technical and development services. In this article, you’ll learn how to pass any data from your website to LeadsHook as a custom field. You can pass […]
How to add CSS to a node
Introduction Its possible to modify the visual aspect of any given HTML in a node. As we are scripting, we should really do a comprehensive course on HTML & CSS first. I recommend the official W3C tutorial online: https://www.w3schools.com/ Once we understand that, it will be relatively easy to modify the design of HTML elements […]