How to display a Voluum parameter on lander

Below is a sample landing page with a script that injects model parameter into the lander. If you open it in the browser and add "?model=123" at the end, it will insert 123 into the site.

function getURLParameter(name) {
    return decodeURI(
        (RegExp(name + '=' + '(.+?)(&|$)').exec(||[,null])[1] || ''

Hello <script>document.write(getURLParameter('model'))</script> user, you just won!


You basically have to:

1. Add tokens in Voluum to your landing page, e.g. {model} or {os}. All options are listed in the lander form. To access Zeropark tokens use {var1}, {var2} and {var3} (target, keyword, match respectively). So your lander URL will probably look something like:{model}&keyword={var2}

2. Add the <script> in the head section.

3.Then everywhere you want to inject a value, use the <script> from the 
body section in the sample, just replace "model" with whatever you want.

   Contact us

Feedback and Knowledge Base