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
- Go to http://www.ipinfodb.com/register.php and sign up for a free API key
- Go to your joomla backend -> plugin manager, and open the "System - Content Statistics" plugin
- 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":
- Save the plugin
- 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.