Device Model Detection for Mobile Landing Pages using VOLUUM.

In most of the WAP based Mobile offers, we need to create a landing page in order to optimize the traffic based on various parameters that affect the conversion rates.

For Android offers , irrespective of Antivirus,Booster,Appinstall  offers, one thing that makes a big impact is the device model. The main reason being there are thousands of Android Devices Manufacturers.

Why Do we need to detect the Device Model ?

Although all android devices run on same OS, the cost,performance,quality of each device varies by Model, and the category of people who use based on cost, quality,performance varies with that.

E.g People who chose a basic X model only use it for chatting or making calls, and they do not download heavy games. And people who chose a high end XY Model always use the mobile for gaming .

This type of customer behaviour could be found out when we run the campaign with certain traffic source and further drill the campaign traffic data to filter out non performers.

How to detect with Voluum ?

In Voluum  we can add a Landing page URL, and append lot of parameters as shown below.

Capture6

But how to capture them and show them in the landing page??

We can do it in two ways, one using PHP and other using Javascript.

PHP

Consider your landing page is hosted at http://www.yourlpsite.com/index.php

Now in your Voluum account add this URL as your landing page and append the url with the parameters as shown

index.php?brand={brand}&model={model}&trafficsor={trafficsource.name}&country={countryname}&isp={isp}&ip={ip}&device={device}&tracking={trackingdomain}

Now in your PHP page, get these variables as shown below.

<?php
$brand = $_GET[‘brand’];
$model = $_GET[‘model’];
$device = $_GET[‘device’];
echo "Your ".$device." Brand is".$brand." and Model is ".$model;
?>

I Have only displayed the device, brand and model in the php, but you can add any parameter and use it in displaying custom message to the customer.

e.g

1. “Your Samsung Galaxy Mobile may be running slow. Install the Latest Mobile Booster to speedup”

2. “Iphone 7 has got a new update for WhatsApp, install now to win one year subscription of XYZ for just $1”

 

Javascript 

Although I mention Javascript way of extracting the parameters, I dont recommend using them as Javascript may be blocked by few browsers.

In the Script block of the html page use the below code and fire an alert.

function getAllParams() {
urlwithparams = decodeURIComponent(document.location);
if (urlwithparams.indexOf(‘?’) > -1) {
uSplit = urlwithparams.split(‘?’);
paramlist = new Object;
if (urlwithparams[1].indexOf(‘&’) > -1) {
multiSplit = urlwithparams[1].split(‘&’);
for (i = 0; i < multiSplit.length; ++i) { if (multiSplit[i].indexOf(‘=’) > -1) {
varSplit = multiSplit[i].split(‘=’);
paramlist[varSplit[0]] = varSplit[1];
}
}
} else {
if (uSplit[1].indexOf(‘=’) > -1) {
varSplit = uSplit[1].split(‘=’);
paramlist[varSplit[0]] = varSplit[1];
}
}
return paramlist;
}
return false;
}

paramlist = getAllParams();
alert('Your Device is'+paramlist.device);