GeoIP2 plugin issue in Matomo

Hello,
We have Matomo 3.12.0 setup on my environment. We are using GeoIP2 (php) plugin for the location tracking from visitors. but we have an issue here, some of the users are browsing from their websites & monitoring analytics. But it is showing default location as “united States” instead of original locations. I read some of the official documents like after 1.9 or later versions it is using GeoIP2 for tracking locations instead of languages. So we tried to download latest version of this plugin from Maxmind website “https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz” in the same way which we have done earlier. But we are not able to download latest version from that website. We have location logs also when we are browsing website but still indicating wrong location.
So please help us how to configure GeoIP2 plugin properly & how to track exact locations from Matomo

Thanks & Best Regards
Revathi

.

Hi,

Can you check the IP addresses of visitors? If they are all the same check if you are behind a reverse proxy. If they are private IP addresses then you are in the same network as the server and geolocation can not work.

Hello Thanks for the response, we are checking on it. But please clarify on the below issue

How to update to latest latest data of that plugin ?
Thanks & Best Regards
Revathi

Hi,

The Maxmind geoip databases are not freely available anymore at the URL you used since the start of 2020.
Now you need to register for an account and accept their terms of services here if you want to use them:
https://dev.maxmind.com/geoip/geoip2/geolite2/

Hello,
Thanks for the reply,
Finally we found that & signed up for the account & provided license details as well. But it’s not installing properly. It’s throwing some error like " Error: Matomo tried checking the location of a known IP address (194.57.91.215), but your server returned ‘L’Ecouvotte, BFC, FR’. If this provider were configured correctly, it would return ‘Besançon, BFC, FR’.".
Please help me on this. How we can install, what are the steps we need to follow.
Thanks & Best Regards
Revathi

Sorry you’re having a problem. It may be an issue for more people as well and maybe new.

-> Could you create a bug report in our tracker at http://www.github.com/matomo-org/matomo/issues and we will follow up and investigate to find the root cause.

Looking forward to finding the solution,