Home > Tracking Campaigns > Voluum

Can't get Voluum to call out model name (10)


02-05-2016 06:26 AM #1 bluecrayon (Member)
Can't get Voluum to call out model name

I've been trying to get this to work all day but no success. I've followed the official guide but still nothing. I must be doing something wrong. Can someone please tell me step by step what I need to do? I want to call out the {model} name on the landing page.

Edit: Found out the issue was caused by Cloudfront CDN.


02-05-2016 08:06 AM #2 stitch (Member)

We need to know what you've tried in order to help.

How about you post a screenshot of the lander setup in Voluum, along with the HTML/JS that isn't working?


02-05-2016 08:12 AM #3 bluecrayon (Member)

So for the lander settings in Voluum, the URL was: http://website.com?model={model}

As for the code I used in the LP:

Code:
<script>
function getURLParameter(name) {
    return decodeURI(
        (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] || ''
    );
}
</script>
</head>
and the code to call out the model

Code:
<script>document.write(getURLParameter('model'))</script>
It just comes out as a blank space where the 'model' is supposed to be.


02-05-2016 08:19 AM #4 stitch (Member)

Strange. Might seem silly, but double-check you are loading the page in your browser with the variable attached: http://www.example.com/lander.html?model=Test as opposed to just http://www.example.com/lander.html

Open the Chrome developer console open (F12 and click Console) and reload the page, do any errors show?


02-05-2016 08:26 AM #5 bluecrayon (Member)

When I manually add ?model=test to the url after visiting the lander, it works. But when I use the Voluum campaign url, it doesn't work. The problem seems to be that it's not passing the model paramater.

No I don't see any errors.


02-05-2016 08:31 AM #6 stitch (Member)

Could I see an actual screenshot of the lander settings in Voluum, showing URL etc?


02-05-2016 08:32 AM #7 halilb (Member)

try to enter that landing page url like http://website.com?model=Apple or something like that on your browser and see if its grabbing model parameter and printing to html. if it is okay, when you create a new campaign and set your lander as a path of that campaign, Voluum will send the model of that system to the landing page url. when trying on pc, it will print the model as "desktop". but there is an option to try models on chrome called "developer interface" which you can select the model of smartphones or tablets and see resolutions.


02-05-2016 08:50 AM #8 bluecrayon (Member)

Quote Originally Posted by stitch View Post
Could I see an actual screenshot of the lander settings in Voluum, showing URL etc?




Quote Originally Posted by halilb View Post
try to enter that landing page url like http://website.com?model=Apple or something like that on your browser and see if its grabbing model parameter and printing to html. if it is okay, when you create a new campaign and set your lander as a path of that campaign, Voluum will send the model of that system to the landing page url. when trying on pc, it will print the model as "desktop". but there is an option to try models on chrome called "developer interface" which you can select the model of smartphones or tablets and see resolutions.
I did as you said, and yes it was displaying the model parameter in plain text like it should. Just that when I use my campaign url, there is no ?model= at the end of my landing page like there should be.


02-05-2016 11:52 AM #9 zeno (Administrator)

Make a new lander and try to do the same thing + add multiple other parameters.

Process of elimination. Is it specifically the model parameter? Is it because you have no index.html or equivalent section and something funky is going on at the end server? Is it because your initial redirect/result got cached by some entity in the process and its serving you the old result over and over? And so on.

Duplicate the campaign. Direct link to a URL with the model parameter.

Experiment.


02-05-2016 03:13 PM #10 ThrvTrkr (Member)

If you're testing on desktop, it probably won't work.

Are you testing on a mobile device? (or something that spoofs a mobile device)


Home > Tracking Campaigns > Voluum