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
Geolocation: German State/ Province huge "Unknown" entries because of wrong languages (db-ip.com) #19329
Comments
Hi @utrautmann So actually english names for german regions won't be mapped correctly. |
Hi @sgiehl , In Matomo, would it be possible that in the absence of an ISO code in the geolocation database, the region information would be used unchanged in Matomo, or would that have other implications? |
@utrautmann We are storing ISO codes in the database and the database field won't be able to store more than 3 characters. So we can't simply store the name. |
@sgiehl "The IP to City Lite database uses English names when possible, or the local name if no translation is available." |
Interesting. So you actually can't rely on what they would return, as you can't know what is translated or not 🤷 |
@sgiehl:
First of all, I don't think that's a bad idea. Of course, it's possible that the English translation has an error, but in that case there's really not much you can do. |
@justinvelluppillai We maybe should consider planning this one in soon. Using the lite version of db-ip.com, which we suggest by default, currently might report a lot unknown regions, due to an not map-able region name. Another option might be to send an official request regarding including iso region codes into the lite database coming from Matomo. We might be a big referral for them, so maybe they would reconsider their plans 🤔 |
Hi, I'm not sure this is the right place, but there are too much dashes in the names of three French regions. I modified the "isoRegionNames.php" file, to have no more unknowns. |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/how-to-set-geolocation-to-wider-region-instead-of-city-suburb/46341/2 |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/problem-with-geography-cities-regions/47960/4 |
closing this one in favor of #20527 |
The Region widget for State/Province shows a lot of unknown entries, although city entries could be localized.
The free database is used:
https://download.db-ip.com/free/dbip-city-lite-2022-06.mmdb.gz
The screenshots show the big difference between localized visitors for Regions and for Cities.
Current Behavior
I have checked this database resp. the CSV file from db-ip.com with the entries for State/Province.
The State/Province entry is sometimes for German regions in German language (Baden-Württemberg) or sometimes in English language (Lower Saxony, Hesse, Bavaria).
It seems to be that whenever the German provinces are in English language in the db-ip.com-Database, there will be an Region entry "Unknown" for the visitor in Matomo .
That might be a content related error at dp-ip.com, but my question is: how does Matomo work here?
What does Matomo need and are there any workarounds?
Needs Matomo the provinces in the language of the city?
The text was updated successfully, but these errors were encountered: