Home > Paid Traffic Sources > Mobile

Device callout? Is there a guide? (8)


11-21-2014 10:51 PM #1 jordanfan20 (Member)
Device callout? Is there a guide?

I'm at the point where I want to start adding callouts to my landing pages. I hate to ask but when I've searched the forums I've come up empty in terms of how to callout devices in landing pages.

I was wondering if someone could direct me to a tutorial or point me in the right direction?

What I'd like to be able to do is say "your HTC One ........." or even say things like "your city"

I'm using a CDN so I can't use php, but does anyone have tips on how to do it?

P.S I'm using Voluum.


11-21-2014 11:30 PM #2 ploppythejailer (Member)

I just posted this thread earlier needing a bit of advice regarding this..but a bit more advanced than you need.

heres the basic code for Voluum

Code:
<head>
<script>
function getURLParameter(name) {
    return decodeURI(
        (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] || ''
    );
}
</script>
</head>
<body>
<h1>Welcome to the <script>document.write(getURLParameter('keyword'))</script> quiz</h1>
</body>
where im displaying the 'keyword' you can callout 'device' / 'carrier' / 'model' etc.

if you do a search of the forum for "getURLParameter" you will find some more threads covering it.


11-22-2014 06:18 AM #3 zeno (Administrator)

The first things you should consider are:

1) What tracking system is being used

and

2) Where are your landing pages hosted.

These determine how you would most efficiently go about implementing a device callout.


11-22-2014 01:27 PM #4 bbrock32 (Administrator)

The solution ploppythejailer posted will do the trick.

If your pages are php you could also use this :

<?php
$param=@$_GET['keyword'];
?>

Replace keyword with device, carrier , model or whatever you want to grab.

When it's time to show it in your code, place this <?=$param?> where you want to call out the variable.


01-22-2015 12:32 AM #5 cjh888 (Member)

Has anyone gotten city callout to work?


01-22-2015 08:05 AM #6 craigm (Veteran Member)

Quote Originally Posted by cjh888 View Post
Has anyone gotten city callout to work?
with Voluum?

Just add the {city} URL token to you LP(s) in Voluum

so mylp.com/index.html?city={city}

document.write(getURLParameter('city'))


01-23-2015 05:02 AM #7 DaveYount (Member)

Quote Originally Posted by cjh888 View Post
Has anyone gotten city callout to work?
I use Maxmind GeoIP2 for city call out in my LPs.

https://www.maxmind.com/en/geoip2-precision-city

You can buy the number of queries for extremely accurate City / Country information with the Full Version DB.

50,000 queries - $20
125,000 queries -$50
250,000 queries -$100
500,000 queries -$200
750,000 queries -$300

However they also have a FREE lite DB version that's really good too. I use it. Never had to pay for any queries and it works just fine for me.

You can download it here for City or Country:

http://dev.maxmind.com/geoip/geoip2/geolite2/

To display in your landing page you put:

<?php

echo $geo['city'];

?>


01-24-2015 11:57 PM #8 prof (Member)

http://feedback.Voluum.com/knowledge...rticles/318335


Home > Paid Traffic Sources > Mobile