Home > Paid Traffic Sources > Mobile

Script to call out location and isp (12)


12-01-2015 06:46 AM #1 mrneko (Member)
Script to call out location and isp

Hi,

Does anyone know where to get the latest working script to call out location, isp, handset .. etc?


Thanks


12-01-2015 12:47 PM #2 caurmen (Administrator)

MaxMind should still be working fine - here's a guide to setting it up: http://stmforum.com/forum/showthread...our-Own-Server

Alternatively, most trackers will pass this data to a lander these days - it's just a question of enabling that function in the tracker then doing a <?php echo $_GET['parameter_name']; ?> in your lander.

Hope that helps! Let me know if you need more assistance.


12-01-2015 03:48 PM #3 curtmoney (Member)

Maxmind works great and I used it for a few weeks, but Voluum added geo tokens that they pass to the lander so i started using that instead as opposed to paying for maxmind. So far it's been working great so I'd recommend checking with your tracker like carumen suggested.


12-04-2015 07:06 AM #4 alfiss (Member)

Quote Originally Posted by caurmen View Post
MaxMind should still be working fine - here's a guide to setting it up: http://stmforum.com/forum/showthread...our-Own-Server

Alternatively, most trackers will pass this data to a lander these days - it's just a question of enabling that function in the tracker then doing a <?php echo $_GET['parameter_name']; ?> in your lander.

Hope that helps! Let me know if you need more assistance.
Hey caurmen, got a quick question.

Does that only work if the traffic source enables the tracking of ISP/location/brand/carrier etc?

If not, could you do a very very quick run through on where do I set this up?

Is it simply the case of typing this on your lander: http://lander.com?country={country}&model={model}&browser ={browser} etc...
..and Voluum will somehow be able to track and detect and pull all those variables out for you?

Thanks!


12-04-2015 08:11 AM #5 mrneko (Member)

@alfiss

I believe you're looking for this ==> http://feedback.Voluum.com/knowledge...eter-on-lander

I followed the instructions in there to display the parameter.


12-04-2015 08:56 AM #6 conrad_birdie (Member)

@mrneko So weird that I was just about to dig into Voluum's knowledge base to find this answer. Would I be able to use this to pass through parameters into an entry alert as well?


12-04-2015 09:32 AM #7 mrneko (Member)

Quote Originally Posted by conrad_birdie View Post
@mrneko So weird that I was just about to dig into Voluum's knowledge base to find this answer. Would I be able to use this to pass through parameters into an entry alert as well?
*Edit*

@budd posted the solution below. Just what I needed too. Thanks.


12-04-2015 09:34 AM #8 budd (Member)

Here is what I use to call out Voluum parameters

Add this before </head>

HTML Code:
<script>
function getURLParameter(name) {
                var str = decodeURI(
                    (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] || '' );  if(str.substring(0,7).localeCompare('Generic') == 0){
return 'Android';
}
return str;
}
</script>
Add this to your <body> where you want to call out the parameters

HTML Code:
<script>document.write(getURLParameter('model'))</script>
In an alert use this within your alert text

HTML Code:
" + getURLParameter('city') + "

Don't forget to add the required parameters to your landing page URL within Voluum

For example
?city={city}&country={countryname}&model={model}&b rand={brand}&ip={ip}&browser={browser}


12-04-2015 09:54 AM #9 conrad_birdie (Member)

Budd is truly the one that knocks.


12-05-2015 02:49 AM #10 conrad_birdie (Member)

Ok...I think I'm really close to figuring this out. I went through the steps but my alert is showing up as raw Voluum data in the alert. I would appreciate anyones input on what I have done incorrectly.


I believe I added the script correctly into my lander and I checked it by inserting 123456 into the carrier placeholder like so...

www.mydomain.com/mylander/index.html?carrier={123456}

Click image for larger version. 

Name:	placeholdertest.jpg 
Views:	38 
Size:	56.0 KB 
ID:	9271 This did appear to work correctly.


Click image for larger version. 

Name:	landingpagesetup.jpg 
Views:	36 
Size:	38.6 KB 
ID:	9272I then went to Voluum and appended the landing page URL with the corresponding URL token. In this case: ?carrier= {carrier]...


Click image for larger version. 

Name:	voluumplaceholders.jpg 
Views:	34 
Size:	57.0 KB 
ID:	9273 When I visit the lander through the campaign URL to check this is the gibberish that appears.


12-05-2015 07:09 AM #11 steel520 (Member)

Quote Originally Posted by conrad_birdie View Post
Ok...I think I'm really close to figuring this out. I went through the steps but my alert is showing up as raw Voluum data in the alert. I would appreciate anyones input on what I have done incorrectly.


I believe I added the script correctly into my lander and I checked it by inserting 123456 into the carrier placeholder like so...

www.mydomain.com/mylander/index.html?carrier={123456}

Click image for larger version. 

Name:	placeholdertest.jpg 
Views:	38 
Size:	56.0 KB 
ID:	9271 This did appear to work correctly.


Click image for larger version. 

Name:	landingpagesetup.jpg 
Views:	36 
Size:	38.6 KB 
ID:	9272I then went to Voluum and appended the landing page URL with the corresponding URL token. In this case: ?carrier= {carrier]...


Click image for larger version. 

Name:	voluumplaceholders.jpg 
Views:	34 
Size:	57.0 KB 
ID:	9273 When I visit the lander through the campaign URL to check this is the gibberish that appears.
Are you checking on a phone with service? A desktop wouldn't have a carrier so that'd be blank I'd assume. It being blank allows the voluum gibberish to be pushed into the carrier spot. Try using a different token for a test like city or something and it see if it works


12-05-2015 07:27 AM #12 conrad_birdie (Member)

Thanks Steel. I was checking with my computer and that would explain why the Voluum gibberish was appearing. I just checked with my mobile phone and the callout worked correctly.


Home > Paid Traffic Sources > Mobile