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
Unexpected result of viewing visitor map in country zoom #13691
Comments
@tsteur Can you look into that? The states are clearly defined, as you can see on the right, but are shown as "unknown" on the map. |
I'm not so much into the maps. I reckon this might be because of the GeoIP2 update @sgiehl ? |
Yes. That's likely caused by GeoIP2. Our map is quite outdate for some states and (except of USA and Canada) it's defined with FIPS country codes (which was used for GeoIP Legacy). GeoIP2 switched to ISO codes for all countries, which makes it impossible for nearly all countries to match the regions anymore. |
Than I propose to hold #13687 back until this is done. |
Btw. As the regions for Germany don't differ that much between FIPS and ISO you might be able to see quite accurate data when applying this change: diff --git a/plugins/UserCountryMap/javascripts/visitor-map.js b/plugins/UserCountryMap/javascripts/visitor-map.js
index 4df3681..5682781 100644
--- a/plugins/UserCountryMap/javascripts/visitor-map.js
+++ b/plugins/UserCountryMap/javascripts/visitor-map.js
@@ -1437,7 +1437,8 @@ $.extend(UserCountryMap, {
"SVN": "region",
"GBR": "region",
"ESP": "fips-",
- "USA": "p", "CAN": "p"
+ "USA": "p", "CAN": "p",
+ "DEU": "p"
},
// custom country label positions [lon, lat] |
Will try that tomorrow at work. |
That's because you are viewing different metrics: visits <> unique visits |
Well, than it is just confusing. But better as before with no data on the map. I can't tell, how this will look in other countries, but I would not merge it if there is any chance to do more harm than good. |
refs #11929 |
@sgiehl applying such patch to fix region mapping sounds nice (didn't know this would have been possible...) 👍 |
That case works for Germany, but not for many other countries. But it would also break the map for those still using GeoIP Legacy |
Is it the same as #20527? |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/probleme-de-geolocalisation-et-statistiques-absentes/53255/2 |
I got a user feedback today asking to get a region/state view level. |
If you view the visitor map on country level you are able to see city, but not state visitors.
Should be fixxed before #13687 is merged to not confuse people.
The text was updated successfully, but these errors were encountered: