This IP2Location plugin enables more accurate location lookup in your Matomo visitor log.
You need a IP2Location BIN database to make this plugin works. Database is available for free at
https://lite.ip2location.com or https://www.ip2location.com for a commercial database.
Login into your Matomo administrator page.
Go to System → Plugins.
Click on the Install New Plugins button at the bottom of the page.
Search for IP2Location from the plugin page.
Install and activate the plugin.
Upload a IP2Location BIN database to misc folder.
Navigate to System → IP2Location page to make sure the BIN database is detected by the plugin.
Go to System → Geolocation.
Select IP2Location as provider and save.
You can visit IP2Location Settings by selecting the menu on the left pane (under System). This plugin support geolocation lookup using IP2Location BIN file and web service.
To use BIN file, please download it from the below links
IP2Location LITE Database (Free)
IP2Location Database (Commercial)
To use ip2location.io Geolocation API service, please sign up for the free account at
https://www.ip2location.io
You should copy the BIN file into /var/www/html/misc folder (for default installation). If you customize the installation path, it should be the misc folder inside your root folder.
If you are using Matomo docker image, then you can use below command to copy the BIN into Matomo container.
sudo docker cp {YOUR_LOCAL_BIN_FILE_LOCATION} {YOUR_MATOMO_CONTAINER_NAME}:/var/www/html/misc
How to I configure the plugin?
Login as administrator, then go to System → IP2Location.
Where to download IP2Location database?
You can download IP2Location database for free at https://lite.ip2location.com or commercial version from https://www.ip2location.com
Can I use IP2Location.io Geolocation API service?
Yes, please create an account from https://www.ip2location.io/ and insert your API key in the settings page.
Use the IPv4 BIN file if you just need to query IPv4 addresses.
Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.
GPL v3 / fair use
Website: https://www.ip2location.com Email: [email protected]