Your visitors on the Google map

Knowing where visitors come from and placing them on the map is one of the functions provided by Google Analytics, but that functionality does not yet exist to show their own maps. The example represents my visitors today, with the disadvantage that there is no zoom, unless you want to see by country, and those annoying sizes can not be controlled.

Google maps visitors

However, the friends of Zipwise, using the API of Google Maps have made a nice toy that, just by receiving the hit of an image placed on the blog can reflect the last 100 visitors on the map.

To do this, the following code is copied in the header or in a Adsense deluxe type ad.

<a href=""> <img src = "" alt = "ZIP Code Maps" border = " 0 "> </a>

Here I show the example of the area of ​​influence of the Hispanic area frequented by Geofumadas at 10 PM, Venezuela time. Of course, with the disadvantage of just being able to see the latest 100 unless you grab the code of your API and do tricks to your liking.

Google maps visitors

The conversion of an IP to a coordinate of type lat, lon is a function that exists in SQL of the form INET_ATON () and INET_NTOA (). Although the friends of Zipwise claim that there is a simple way to convert it manually:

For the case, an IP Is transformed by making fashion series:

12 * 256 ^ 3 = 201,326,592
34 * 256 ^ 2 = 2,228,224
56 * 256 ^ 1 = 14,336
78 * 256 ^ 0 = 78

Until you take it to the form:


Hehe, as easy as Geospatial Administrator of Bentley Map.

There are other data that can be downloaded from the Zipwise website, and through paid services to access your data.

One Reply to "Your visitors on the Google map"

  1. The functions you mention (and the formula) refer to the conversion of an IP into a number that is easy to index and search in the database, not in a lat, lon coordinate, that will be given by the query when you find The range in which the ip is converted into number.

Leave an answer

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.