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.

You should create URL parameters (e.g. UTM parameters) as answer or form custom fields. LeadsHook will save the values into those custom fields.

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;;

In this case, you should create 3 custom fields, and you can name them exactly as:

Chicago%2BTribune, Newspaper%2BOctober and Chicago%2BPPC%2BSale are variables that will be replaced by the traffic source.

If the traffic course 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.
e.g. and

There is no need to add custom fields to a start page. As long they exist 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 the 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 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}

See More 

Form and Answer Custom Field type: text

Leave a Reply

Your email address will not be published. Required fields are marked *