Home >
General >
Affiliate Marketing Forum
How do you pass variables from voluum to your landing page? (10)
02-23-2014 01:46 PM
#1
cashmoneyaffiliate (Member)
How do you pass variables from voluum to your landing page?
hey up I've been using Voluum for just over a month but cant seem to figure out how to pass variables from Voluum to my landing page ie. the users mobile device there using to view the page
If anyone could help with this that would be grate.
Thanks
02-23-2014 05:35 PM
#2
kamaleon (Member)
Here is the code they gave me from support
Code:
<html>
<head>
<script>
function getURLParameter(name) {
return decodeURI(
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] || ''
);
}
</script>
</head>
<body>
Hello
<script>
document.write(getURLParameter('model'))
</script>user, you just won!
</body>
</html>
I have not tried it yet
02-23-2014 10:01 PM
#3
cashmoneyaffiliate (Member)
Thanks kamaleon
But i still cant seem to get it working, so looks like i'll have to send a ticket to support.
02-23-2014 10:06 PM
#4
karim0028 (Member)
dont use js.... Use PHP, im doing this now, so i know it works...
in your URL in Voluum
mylander.com/lp1/index.php?brand={brand}
in your lander php file at the very top...
<?php
if(isset($_GET['brand'])){$brand=$_GET['brand'];}
?>
you then can use your variable within the lander; in this case
<?php echo $brand; ?> will print out the $brand variable on your lander...
Add in all the variables within your URL and the corresponding GET in the php section, voila!
Here is how it looks in the HTML
<h2> Your <?php echo $brand; ?> Has A Bad Ass Problem!</h2>
02-23-2014 11:02 PM
#5
zeno (Administrator)
Voluum automatically appends a long tail of querystring data to the URL - haven't tested it but I assume you can just GET this data without having to add any ?token=something to your lander URL in Voluum.
02-23-2014 11:09 PM
#6
karim0028 (Member)
if you know how let me know... You have available tokens that you have to assign a value to in order to pull them out of the URL that comes in....
ie. {model}, {brand}, etc... But, i believe in the LP URL you have to assign a variable to these tokens... ie. &brand={brand}... I dont believe they are automatic...
If you know otherwise lemme know, would love it otherwise..
02-23-2014 11:24 PM
#7
cashmoneyaffiliate (Member)

Originally Posted by
karim0028
dont use js.... Use PHP, im doing this now, so i know it works...
in your URL in
Voluum
mylander.com/lp1/index.php?brand={brand}
in your lander php file at the very top...
<?php
if(isset($_GET['brand'])){$brand=$_GET['brand'];}
?>
you then can use your variable within the lander; in this case
<?php echo $brand; ?> will print out the $brand variable on your lander...
Add in all the variables within your URL and the corresponding GET in the php section, voila!
Here is how it looks in the HTML
<h2> Your <?php echo $brand; ?> Has A Bad Ass Problem!</h2>
Working perfectly, thanks a lot.
02-24-2014 04:37 AM
#8
zeno (Administrator)

Originally Posted by
karim0028
if you know how let me know... You have available tokens that you have to assign a value to in order to pull them out of the URL that comes in....
ie. {model}, {brand}, etc... But, i believe in the LP URL you have to assign a variable to these tokens... ie. &brand={brand}... I dont believe they are automatic...
If you know otherwise lemme know, would love it otherwise..
Oh right - yes for the 'extra' things that
Voluum can track (e.g. ISP, model, etc.) you have to put them in as extra tokens in your LP link.
04-18-2015 11:36 AM
#9
gadmei (Member)

Originally Posted by
karim0028
dont use js.... Use PHP, im doing this now, so i know it works...
in your URL in
Voluum
mylander.com/lp1/index.php?brand={brand}
in your lander php file at the very top...
<?php
if(isset($_GET['brand'])){$brand=$_GET['brand'];}
?>
you then can use your variable within the lander; in this case
<?php echo $brand; ?> will print out the $brand variable on your lander...
Add in all the variables within your URL and the corresponding GET in the php section, voila!
Here is how it looks in the HTML
<h2> Your <?php echo $brand; ?> Has A Bad Ass Problem!</h2>
Hi karim0028,
What if I want to call more than 1 paramater… I try like this but it's not work
<?php
if(isset($_GET['brand'])){$brand=$_GET['brand'];}
?>
<?php
if(isset($_GET['city'])){$city=$_GET['city'];}
?>
mylander.com/lp1/index.php?brand={brand}&city={city}
<h2> Your <?php echo $brand; ?> Has A Bad Ass Problem! Are you from <?php echo $city; ?>?</h2>
Can you show me the correct one…
Thanks
04-18-2015 12:20 PM
#10
cmdeal (Veteran Member)
The master guru caurmen has a great tutorial on just this topic http://stmforum.com/forum/showthread...329#post219329
Home >
General >
Affiliate Marketing Forum