Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaxMind GeoIP2-City-Europe database not working properly #16171

Closed
ottk3 opened this issue Jul 2, 2020 · 2 comments
Closed

MaxMind GeoIP2-City-Europe database not working properly #16171

ottk3 opened this issue Jul 2, 2020 · 2 comments
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@ottk3
Copy link

ottk3 commented Jul 2, 2020

Hi there,

we recently purchased the MaxMind GeoIP2-City-Europe database but getting pretty bad results for europe.
We are using the PHP-method (it says installed), but it can't determine my own ip address.
Even the other found locations look some kind of odd.

According to this provider, your current location is:
Unknown Refresh
Note: This GeoIP implementation has access to the following types of databases: City, Country.

While the MaxMind Precision Demo correctly determines my location in Germany.

The GeoIP2-City-Europe.mmdb was correctly extracted into the /misc directory using the automatic url download option with the following url:

https://download.maxmind.com/app/geoip_download?edition_id=GeoIP2-City-Europe&suffix=tar.gz&license_key=<key>

What are my options to check if all settings are correct?

Best regards,
Sven

@ottk3 ottk3 changed the title MaxMind GeoIP2-City-Europe database not working probably MaxMind GeoIP2-City-Europe database not working properly Jul 2, 2020
@sgiehl
Copy link
Member

sgiehl commented Jul 2, 2020

Hi @ottk3. I don't have access to the paid versions of Maxminds databases, so I'm not able to check that locally...

Are you accessing your Matomo locally? If so, that might be the reason for the "Unknown" result, as Matomo might use your local IP for the lookup.

Note: You can use the API of your Matomo to do a lookup with the current configured location provider with this API call:

https://{your.matomo.url}/index.php?module=API&method=UserCountry.getLocationFromIP&ip=194.57.91.215&format=JSON&token_auth={YOUR_TOKEN_AUTH}

@tsteur tsteur added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Jul 2, 2020
@ottk3
Copy link
Author

ottk3 commented Jul 3, 2020

Hi @sgiehl,

Thank you!
Regarding my own ip address you were totally right. I checked it while connected to the company network and wasn't aware that the domain is routed internally.

The bad geolocation of our visitors is caused by the "Anonymize Tracking Data" settings since we anonymize the addresses.

@ottk3 ottk3 closed this as completed Jul 3, 2020
@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

4 participants