diabl0 / piwik-geoip2

MaxMind GeoIP2 Location Provider for Piwik
7 stars 4 forks source link

mmdb is ok, but plugin shows Wrong location #7

Open pablitok opened 7 years ago

pablitok commented 7 years ago

I'm using Piwik 3.0.4, this plugin, and GeoIP2-City.mmdb. If I query the db for some ip with some mmdb reader (like MaxMind-DB-Reader-php), I get the correct result, but in Piwik, the same IP it is assigned to Spain. I'm not sure where I have to put the mmdb file (I didn't find any documentation about this) so I put it where i have my GeoIPCity.dat file, is it ok there?

ahaenggli commented 6 years ago

The *.mmdb file must be placed in the /misc/ folder of your Piwik/Matomo installation. Example: /www/piwik/misc/GeoIP2-City.mmdb

After that, be sure to set GeoIP2 as your location provider grafik

grafik