0

I have created a website and also I got Google AdSense. Now I want my site to be viewed more by American People. Is it possible to track the visitors' country using the IP address? Can anyone help me in this?

1
  • Have you tried using Google Analytics?
    – Glorfindel
    Jun 18, 2015 at 7:21

1 Answer 1

0

Try this. This will return the users country and city in json format. Hope this helps.

http://api.hostip.info/get_json.php?ip=your-ip

If you want to get the latitude and longitude:

http://api.hostip.info/get_json.php?ip=your-ip&position=true

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.