Home > Paid Traffic Sources > Mobile

Calling out device name..... (9)


07-07-2014 08:10 PM #1 itsjustbrian (Member)
Calling out device name.....

Hey guys, I use imobitrax and I'm curious how to call out a user's device name similar to how we can call out a user's location with geoip scripts on the landing page.


07-07-2014 08:35 PM #2 trappedinabrowser (Member)

I've been using https://www.handsetdetection.com, someone posted this a while back and it's worked great for me so far.


07-08-2014 02:27 AM #3 itsjustbrian (Member)

Thanks man,

But I'm curious... I use imobitrax, which already can detect the exact device... isn't there some way to use it to call out device name in landing page? What code is involved? It's got to be simple..


07-08-2014 11:08 AM #4 zeno (Administrator)

Perhaps you can pass these in the lander URL using tokens like {model}? I'd consult the help files or better yet just ask iMobiTrax support.


07-11-2014 06:21 AM #5 itsjustbrian (Member)

I tried consulting with support, I got even more confused.

Does the following make sense?

With cookies, pass it in the url using the macro from that KB article.

http://domain.com/lp.php?name=[[device_name]]

On the page, you have to "get" it using $_GET.
$deviceName = isset($_GET['name']) ? $_GET['name'] : NULL;

// check for blank or unknown values and apply something that makes sense..
if (!$deviceName || stripos($deviceName, 'unknown') !== false) {
$deviceName = 'SOME DEFAULT TEXT';
}


07-11-2014 08:11 AM #6 jorgos (Member)

include the landing page script and echo the device data via PHP:

<?php echo $device_marketing; ?>


07-11-2014 10:43 AM #7 dongle132 (Member)

Imobitrax UserGuide - Page 58 - Advanced Features


07-13-2014 12:41 AM #8 gaultsyndicate (Member)

Were you able to get this to work? I'm having the same issue.

My question is after passing the macros in the URL what code would I use in the landing page to call it out?


07-14-2014 06:06 PM #9 zeno (Administrator)

If your URL is hxxp://domain.com/lander.php?something=value

Then the code you would use is: <?php echo $_GET['something']; ?>


Home > Paid Traffic Sources > Mobile