geo targeting

by 5 replies
7
Does anyone know of a good plug in/solution to geo target visitors?

Lets say I have apage about dentists in the US.
We have a visitor from arizona
Then I need the plug in to show a banner(from my webspace) that is about a dentist in arizona.
If someone from New york shows up on my page it shows the banner from the new york dentist that advertises on my page.

anyone an idea?

I guess I need some sort of database Ip->show banner.
#programming #geo #targeting
  • Yes, but the IP-to-city database. Please download the free version of maxmin which is good for your need (forum.tinyray.com/viewtopic.php?f=158&t=126). I am using this for my webhit counter.
    • [ 1 ] Thanks
  • Hello finne,
    To achieve your goals you need a GeoIP database and then it's fairly easy to set up.
    I will list you the few steps in with additional PHP code.

    1. Get the GeoIP database from here: http://geolite.maxmind.com/download/...y/GeoIP.dat.gz and extract it into a folder

    2. Get the PHP class for easy database handling here: http://geolite.maxmind.com/download/.../php/geoip.inc

    3. Now you just need to run the PHP code to determine the Country of your visitor:
    You can't find the code here: http://pastebin.com/KQSeqfej Forum won't let me post it here.

    Now with this you can do a check on the $country variable to determine what to display.

    Please let me know if you need additional help.

    Cheers
    • [ 1 ] Thanks
    • [1] reply
    • I recommend checking out GeoPlugin. It'll work for this and you don't need to download anything.
      • [ 1 ] Thanks
  • If you just want to use geotargeting for ads then I would just use the openx adserver. It will do exactly what you are asking for. clippersoft.net also offers a adserver solution with geo targeting.
    • [ 1 ] Thanks
  • If you're using WordPress, there are geo target plugins that can do the job - WordPress › WordPress Plugins

Next Topics on Trending Feed

  • 7

    Does anyone know of a good plug in/solution to geo target visitors? Lets say I have apage about dentists in the US.