Follow

How to display a parameter on your lander

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

 

<html>

<head>

<script>

function getURLParameter(name) {

   return decodeURI(

       (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] || ''

   );

}

</script>

</head>

<body>

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

</body>

</html>

You basically have to:

  1. Add tokens in Track Revenue to your landing page, e.g. [[device_model]] or [[device_os]] or [[isp]]. All token options are listed here.
  2. Add the <script> in the head section from the attachment.
  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.

0 Comments

Please sign in to leave a comment.
Powered by Zendesk