@mfb opened this Issue on April 29th 2019

For privacy policy reasons, we need Matomo to log only the visitor's country, not their city.

Therefore, we have configured the country-only Geo IP 2 database at index.php?module=UserCountry&action=adminIndex by using https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz as the download URL.

Inexplicably, however, Matomo is reporting:

According to this provider, your current location is:

(37.735, -122.373)
San Francisco, CA
94124
United States

Note: This GeoIP implementation has access to the following types of databases: City.

No idea what could cause this, but I was thinking perhaps the plugin downloaded a City database and has failed to overwrite that with the Country database I specified? However, autoupdates have been running:

The updater was last run on 2019-04-29.

So, I'm stumped on how to properly setup country-only GeoIP lookup.

@sgiehl commented on May 31st 2019 Member

Do you still have that problem? Tried to reproduce that, but when I set up GeoIP with the country db url, it works like it should. Did you maybe set it up with the city database and changed to download url afterwards to the country db url? The task to update the database stored locally might not be automatically triggered when the url is changed...

@mfb commented on June 1st 2019

It was initially using the city database. So my question is, why is it not updating to use the country database when the autoupdate runs - it's now run several times on a weekly basis.

Powered by GitHub Issue Mirror