I'm preparing to build my first email list and I was wondering if someone knows a way to scrape the ip for location from sign ups. Would be extremely useful for targeting particular areas for commerce.
If I was having a go at it I would make the form and when they hit submit, you go to the thank you page.
On that page, I guess you are putting the email address into a database of some sort? If you are using PHP its easy enough to grab the users IP address and add that to the database.
To get the location, use an API to get the location. I have used http://ipinfodb.com/ip_location_api.php before and its not half bad. Thats another PHP request to the API and then save the result into the database.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.