Set up IP-geolocation to track Country, State and City

Setting up IP geolocation

In order to start tracking Geolocation information, it's necessary that you are running at least Content Statistics 1.6. You will need to sign up for a (free) API key at IPInfoDB.com

  1. Go to http://www.ipinfodb.com/register.php and sign up for a free API key
  2. Go to your joomla backend -> plugin manager, and open the "System - Content Statistics" plugin
  3. In version 1.6, you will find 2 new parameters in this module. You will need to copy your API key and set the "Use IP GeoLocation to ON":
  4. Save the plugin
  5. To display maps, you will need to install our Content Statistics (MAPS) module.
Important The PHP directive allow_url_fopen must be enabled for the IP geolocation service to work.

Data accuracy

The geolocation is obtained based on the IP from the computer, and cross-relating this information with IPinfoDB.com database.

The accuracy is said to be over 99.5% on a country level and around 60% on a city level for the US within a 25 mile radius.