Geo Trageting script

Submitted by pothick on Tue, 07/01/2008 - 12:49.
Hi Jeremy and all,
I am trying to wright my custom php script to implement geo targeting so that I can determine where the sale came from. As a new bee its tacking a bit more time to write than I thought it would. I am wondering whether anybody know about a script that can help me implement this fiture or point me to the right direction.
Thanks in advance for your time and I appreciate the help.
Claudia

I'd love to see something
I'd love to see something open source here. The few solutions I've seen that aren't custom are quite expensive.
-Ken
got twitter?
www.twitter.com/kensavage
I don't know of any scripts
I don't know of any scripts off the top of my head. You can do geo targeted tracking a few different ways:
Use a pre-built script or service like IP 2 Location
http://www.ip2location.com/
Setup your PPC campaigns by geographic area. Append a parameter to your tracking URL that reveals what geo-targeted campaign it is.
Do a live lookup on their IP using a custom script that pings Arin.net or your own local database
(it sounds like this is what you're trying to do)
Best,
Jeremy