Geolocation
On this page you can change how Matomo determines visitor locations.
How to setup accurate geolocation with dbip
You do not appear to have accurate Geolocation setup. This is a useful feature and without it you will not see accurate and complete location information for your visitors. Here's how you can quickly start using it:
- Download the DBIP City Lite database from dbip.*
- Extract this file and copy the result, 'dbip-city-lite-2023-05.mmdb' into the misc Matomo subdirectory and rename it to DBIP-City.mmdb (you can do this either by FTP or SSH).
- Reload this screen. The DBIP / GeoIP (PHP) provider will now be Installed. Select it.
- And you're done! You've just setup Matomo to use DBIP which means you'll be able to see the regions and cities of your visitors along with very accurate country information.
* Note: the DBIP databases are free and can be downloaded automatically, but geolocation results (specifically city results) are not as accurate as MaxMind's. MaxMind, however, requires that you create an account even for the free database. If you want to use MaxMind's geolocation database, you can start the process here.
Installed
Disables the geolocation.
Unknown
Installed
The default location provider guesses a visitor's country based on the language they use. This is not very accurate, so we recommend installing and using a geolocation database.
United States
Org: Unknown
ISP: Unknown
Not Installed
This location provider is the simplest to install as it does not require server configuration (ideal for shared hosting!). It uses a DBIP or GeoIP 2 database and MaxMind's PHP API to accurately determine the location of your visitors.
Not Installed
This location provider uses the GeoIP 2 module that has been installed in your HTTP server. This provider is fast and accurate, but can only be used with normal browser tracking.
Note: IP anonymization has no effect on the locations reported by this provider. Before using it with IP anonymization, make sure this does not violate any privacy laws you may be subject to.
If you have to import log files or do something else that requires setting IP addresses, use the PHP GeoIP 2 implementation and install maxminddb extension.
How do I install the GeoIP module for Apache?
How do I install the GeoIP module for Nginx?
You can configure used server variables here.
Matomo is currently not managing any DBIP or MaxMind databases.
I want to download the free DBIP database...*
* Note: the DBIP databases are free and can be downloaded automatically, but geolocation results (specifically city results) are not as accurate as MaxMind's. MaxMind, however, requires that you create an account even for the free database. If you want to use MaxMind's geolocation database, you can start the process here.
Enter the download links for your databases below. If you've purchased databases from dbip or MaxMind, you can find these links in your dbip or MaxMind account. Please contact your geolocation database provider if you have trouble accessing them.
If you're using the dbip city lite database, use this link: https://download.db-ip.com/free/dbip-city-lite-2023-05.mmdb.gz
If you are using MaxMind's geolocation databases and you do not already know how to generate your download URL, click here to learn how.
Matomo is currently managing updates for the following databases: