We'll be with you in a second ;)

Raw data is owned by the customer and can be obtained per request

Docly Child

Dynamic parameters: show on a page

Estimated reading: 2 minutes

Why it is needed?

You are able to use additional parameters on your lander to improve your page and make it more personal for a visitor.
For example show the city information based on the real city of the visitor.
In RedTrack we have a list of supported dynamic parameters available for that purpose. If you need to receive some additional information on your Landing page, you can add these macros to your lander’s URL.

1. Use the desired macro in your landing page URL and we will identify the city name:

The city is taken just for an example as you can use any macro you need.

2. Now you can parse it and use as needed:

3. Put the script to your page code.

In our case, the script will look like this:

<script type="text/javascript">
var parameterName;
function getParameterData(name) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] === name){
return decodeURI(pair[1]);}

parameterName = getURLParameter('city')

NOTE: The ‘city’ parameter was used but you can use any from the available ones.

4. Put another script to your page where it is supposed to place the dynamic value from the URL:


If you need to show several different parameters, just add this line again:


You can see that we use the parameter ‘city’ here – that means the script will take the dynamic value for the city from the LP URL and place it to your page. 

5. Here’s how the scripts look like in a page code:

And here’s how it looks like on a page: