I am using Blogger for blogging and if a visitor comes from USA i want to display certain banner or link or advertisement.
Asked
Active
Viewed 48 times
0
-
One technique used for broad location is to take the user's IP address and look up the approximate location based on that. See [here](http://stackoverflow.com/questions/4937517/ip-to-location-using-javascript) for one way to do that. – jfriend00 Apr 06 '15 at 01:09
-
You're looking for the geolocation API. – SLaks Apr 06 '15 at 01:10
-
See [this SO article](http://stackoverflow.com/questions/3489460/how-to-get-visitors-location-i-e-country-using-javascript-geolocation) for how to obtain lat/long for a user and then convert into a physical location. – Tim Biegeleisen Apr 06 '15 at 01:12