Hey guys, I was recently asked by one of my ad networks if I have the capability to geo target the tags on my site. They said that it will dramatically increase my ad revenue if I did so. So has anyone here used any kind of geo targetting script? Can anyone give me advice on the best one?
You can take a look at IPinfoDB and their API. I've been using their site for geo-targeting and it proved pretty reliable. Here's the link: http://www.ipinfodb.com/ip_location_api.php
Search for ip2nation database. There is also an wordpress plugin for it. Google some info, I used it a lot.
thanks for all the great info, but im completely lost on actually doing this.. any body want to do a quick tutorial on how to properly set it up and know its working??
Download http://www.ip2nation.com/ database and import into your wordpress database. Download and activate this plugin: http://planetozh.com/blog/2004/08/ip-to-nation-plugin/ (also see more info there). Put this in your single.php or whereever you want in template: <?php $country = wp_ozh_getCountryName(0) ; switch ($country) { case "Japan" : case "Yugoslavia" : echo "this is something to dispaly"; break; default : include (TEMPLATEPATH . '/bannercode.php'); } ?> PHP: By default this will call and display content of bannercode.php and it will display your text if countries are Japan or Yugoslavia. For more exact countries names check bottom of ip2nation.sql (open with any text editor and copy). Hope this helps.
For multiple countires duplicate this line: case "Yugoslavia" : PHP: and replace country name. First part tells you what to do if any of listed countries, second part is every other country.