Hi, I'm using matomo 3.9.1 with GeoIP 2 (PHP)
The problem is that Moroccan cities are not matching regions (also the map is showing incorrect regions for cities) as you can see in the picture below :
I also tested some IP address here:
and seems like everything is OK, so I do not know where the problem comes from.
PS: I can help correct Moroccan cities to match their regions
Hi there. Sorry for the delay. What exactly is wrong with the regions? We actually only use the data provided by Maxmind in this case. Only the region names are stored within in Matomo, but I don't think the mapping from ISO codes to region names has changed. See https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/GeoIp2/data/isoRegionNames.php#L2979-L3060
Hi! Thank you for your reply,
I think the ISO mapping may have changed because Morocco has recently changed its regions from 16 to 12 regions.
source : https://en.wikipedia.org/wiki/Regions_of_Morocco
here is a demo that shows the difference between Maxmind and Matomo for the same address ip:
IP address: 188.8.131.52
ah ok. so we need to update our region mapping. Will have a look at that