Home > > Newbie Follow-Alongs

Ispid in voluum (3)


04-03-2020 05:53 PM #1 mayadefr (Member)
Ispid in voluum

Hey guys,
I found the ISP NAME token in Voluum,
but not sure how & where to add the ISPID token.


I'll be happy for any guidance regarding this.


Thanks!
Maya


04-04-2020 12:19 PM #2 platinum (Veteran Member)

Hi Maya,


I guess you are looking to add ISP token on your landing page in order to dynamically display the ISP provider to your landing page visitors. If that is the case, you need to follow the below simple steps.

Step 1: Add the below JavaScript between your landing page <head> </head> tags.

Code:
<script>
function getURLParameter(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]);}
}
return "";
}
</script>
Step 2: Add this other small JavaScript tag where you want to display ISP name
Code:
<script>document.write(getURLParameter('isp'))</script>
Example:

Code:
<body>
<p>
Hello <script>document.write(getURLParameter('isp'))</script> user, you just won!
</p>
</body>

Step 3: Append the ISP parameter=token on your landing page parameters on your tracker - example below.



Hope this helps


04-04-2020 04:38 PM #3 mayadefr (Member)

Thanks platinum,
that was very helpful!!


Home > > Newbie Follow-Alongs