This guide explains how to pass variables to LeadsHook and send data back via URL to a third-party application, landing page, or website using URL parameters.

Understanding URL parameters

You may configure your decision tree to accept URL parameters from referring URLs, such as coming from Facebook, Google paid ads, and save that information.

For example you can send UTM parameters and any others you want to LeadsHook.  Append your URL parameters (e.g. UTM parameters) to the URL (see examples below).

How to Save URL Params into Custom Field

Simply ensure your custom fields are the SAME as the URL params.  Then LeadsHook will save the values into those custom fields.

E.g. if you want to pass ‘utm_source’ from google or facebook, then please create a text field in LeadsHook as ‘utm_source’

URL parameters are set up with the following syntax:


E.g. adset_id=1233456789

adset_id is the variable
1233456789 is the value

Step by Step Instructions

Incoming URL parameters

1. How to create and add a Custom Field

The custom field type should be “text”:

Here is how you should create the custom fields:

For example

For this incoming URL..;;

… you should create 3 custom fields, and you can name them exactly as:

Chicago%2BTribune, Newspaper%2BOctober and Chicago%2BPPC%2BSale are values sent by your traffic source.

If the traffic source allows you to add variables, you should add variables. If you want to pass text or values, then simply add them, just like in the URL above.

Warning: Please be sure to remove or add the trailing /, if it does not work.  OR

There is no need to add custom fields to a start page or decision tree.  As long as the custom field has been created in Leadshook, it will work.

You can pass as many URL parameters as you want from any traffic source.

As long as the variable names exist inside LeadsHook, the data will get saved into their respective fields.

Then, simply make sure you have the following custom fields setup:


Because LeadsHook has ZERO limits on the number of custom fields you can create you also pass additional details, such as:


Simply create the custom fields and your data will be saved into the respective custom fields.

LeadsHook will grab the data even when your decision tree is embedded.

Your URL to the page where you embedded your decision tree will look like this:

Note: If the parameters are dynamic like ValueTrack, then be sure to add the traffic sources dynamic params like {source}. This way your traffic source will replace the params with values and pass those to your webpage.

Outgoing URL Parameters

To pass data back out add the custom fields into your existing URL.

The only change is now the custom field will be used as a value instead of the variable. The variable you use will be whatever your next platform or app uses.{leadshook_customfield1}&variable2={leadshook_customfield2}&variable3={leadshook_customfield3}

VIDEO: Using the Power of Decision Nodes to Distribute Leads

In this video, you’ll learn…

How to capture data from your traffic source, such as a google ad, facebook ad, emails. native ads or from your own website.

How to use captured data to add logic to a decision node to send the data back out to another web page or website via a url redirect, email marketing/CRM connection or webhook.


Using URL parameters in LeadsHook allows you to personalize and enhance your decision trees by receiving and passing data from and to other platforms respectively. Through these steps, you can readily set up and utilize URL parameters in LeadsHook.


  • Can I pass dynamic parameters like ValueTrack?
    • Yes, if the parameters are dynamic like ValueTrack, make sure to add the traffic sources dynamic params like {source}. This way your traffic source will replace the params with values and pass those to your webpage.

Related Articles

Form and Answer Custom Field type: text

Comments are closed.