Home > Questions and Answers > General Questions

GEO Targetting (11)


09-18-2013 01:53 PM #1 mikey (Member)
GEO Targetting

Guys can someone answer what i hope is simple question

When someone clicks on my creative , depending on the GEO i can redirect to different lander - in different languages - yes ?


09-18-2013 01:57 PM #2 mikey (Member)

oh and forgot to ask the url in the creative points to the redirect ?


09-18-2013 04:17 PM #3 caurmen (Administrator)

Yes, that's doable, although it requires a little bit of coding depending on which tracking software you're using. The STM tracker, MobAff, and several others have this built in, but CPVLab and Prosper don't.


Here's a tutorial on how to do geo-redirects for trackers that don't have the ability built in.


Hope that helps!


09-18-2013 04:40 PM #4 mikey (Member)

thanks caurmen that makes sense - however i'm not getting myself mixed up with the basics of propser now

If i'm trying to track banner links and landing page click through do i just need to use the link id created in the simple LP setup discussed in your tutorial


09-18-2013 10:35 PM #5 JasperP (Member)

@mikey if you setup your campaign according to the tutorial, the LP Clickthrough and banner links should be tracked appropriately. Test it first before you go live!


09-19-2013 03:37 AM #6 thedudeabides (Moderator)

Maxmind php version works okay, but you have to keep remembering to update regularly it otherwise it loses accuracy. Also its international accuracy can be quite low so it's not very reliable. And around 5% or higher of the time it wont return any city or county data for US, so just be mindful of that if you have a big headline with geolocation in it.

If you use cloudflare, I believe they also have country level detection you can use with PHP.

Geoplugin.com is another 3rd party service I've seen used. Disadvantage there with the php implementation is it requires your server to ping theirs before your page even starts loading, so there could potentially be some slowdown there, but I haven't observed any yet.


09-19-2013 11:54 AM #7 bbrock32 (Administrator)

If you host the ads you could use an adserver ( OpenX if you want free ) to do that.


09-19-2013 03:57 PM #8 mikey (Member)

Quote Originally Posted by caurmen View Post
Yes, that's doable, although it requires a little bit of coding depending on which tracking software you're using. The STM tracker, MobAff, and several others have this built in, but CPVLab and Prosper don't.


Here's a tutorial on how to do geo-redirects for trackers that don't have the ability built in.



Hope that helps!
Thx Caurmen

I also see a way to do it is make a call to http://j.maxmind.com/app/geoip.js - whats the best option do you think


09-19-2013 03:57 PM #9 caurmen (Administrator)

@thedudeabides - interesting tip about Cloudflare!

Here's some more info I dug up on that: http://www.quora.com/How-does-CloudF...olocation-work

Well worth knowing.

@mikey - I prefer the PHP option. It's faster and more reliable. Maxmind keep making noises about changing their JS to be more limited or paid only - I prefer to have the db on my server.


09-19-2013 05:58 PM #10 mikey (Member)

Quote Originally Posted by caurmen View Post
@thedudeabides - interesting tip about Cloudflare!

Here's some more info I dug up on that: http://www.quora.com/How-does-CloudF...olocation-work

Well worth knowing.

@mikey - I prefer the PHP option. It's faster and more reliable. Maxmind keep making noises about changing their JS to be more limited or paid only - I prefer to have the db on my server.
thx - however beyond hosting wont install the composer element on a shared vps - full response below

Mike,

1) your server already has both the City and Country GeoIP database on it, using the GeoIP php module.

2) You are on a shared server, so while we could put the files in place, we cannot install the composer part of the software, as that would have system wide effects for the other customers on your server.

Here is some example code that will work with the GeoIP php module on your server. Hopefully this will help you with whatever you are trying to set up.

<?php
$geo = geoip_record_by_name( $_SERVER['REMOTE_ADDR'] ); //This will pull information for the client ip.
echo "<h1>How's the weather in ".$geo['city'].", ".$geo['region']."</h1>"; //This will display "How's the weather in Cincinnati, Ohio"
?>


09-20-2013 12:56 PM #11 caurmen (Administrator)

In that case, you're good to go - just insert that code into your landers and you'll see that you already have geolocation enabled.

From there, you just need to modify the script I posted a bit: replace the first segment with

Code:
<?PHP

$geo = geoip_record_by_name( $_SERVER['REMOTE_ADDR'] ); 

$subid = $_GET['subid'];

switch($geo) {


Home > Questions and Answers > General Questions