With BeMob it is possible to add and refresh data on your landing page dynamically.
The tokens available in the landing page settings will help you to perform the dynamic callout.
The corresponding data will be uniquely assigned to each visitor.
🔎 Learn more about this option in our Workspaces guide.
🔎 More details on landing page settings see in our dedicated guide.
In our example we want browser data to be displayed on a landing. We use GET parameter p1 to add required data dynamically.
https://www.mylandingpage.com?p1={browser}
It is not obligatory to use p1 as a GET parameter. You can use your own parameter in this case.
Here is a list of available BeMob tokens with the description.
After your landing page is successfully created it is requried to add it to campaign settings.
🔎 More details on campaign settings see in our dedicated guide.
To insert token values into your landing page dynamically, you should set the following script inside the head of your landing page code.
<script>
function getParameterByName(name, defaultValue) {
if (!defaultValue) {
defaultValue = '';
}
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(window.location.href);
if (!results) return defaultValue;
if (!results[2]) return defaultValue;
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
</script>
Also, it is required to set GET parameter inside the body of your landing page code.
<div class="container theme-showcase" role="main">
<div class="jumbotron">
<h1>My Landing Page</h1>
<p>Special offer for <script>document.write(getParameterByName('p1'))</script> users!</p>
<p>
<a href="https://xxxxx.bemobtrk.com/click" class="btn success">Click me!</a>
</p>
</div>
</div>
You should use the same GET parameter in both the URL and the code of your landing page.
To check if the required data is passed on your landing page correctly, you should go through Campaign URL.
If you have any questions or need the assistance with the settings, contact our support team through the live chat or at support@bemob.com