@sgiehl opened this Issue on March 13th 2015 Member

When adding a region segment, the segment editor is currently suggesting the internal region code screenshot
(see https://github.com/piwik/piwik/blob/master/libs/MaxMindGeoIP/geoipregionvars.php).
Those are not really helpful.

It would be a big improvement if the available regions would be suggested instead.
As the internal region codes are ambiguous we would need to map the selection to a segment filtering by region and country.
So selecting "Bayern" as region would segment by (country=DE and region=02)

@tsteur commented on March 15th 2015 Member

Just FYI: That be also useful for #4633 maybe. There I am doing this "manually": eg https://github.com/piwik/piwik/blob/2.11.2/plugins/UserCountry/API.php#L72-L73 and https://github.com/piwik/piwik/blob/2.11.2/plugins/UserCountry/API.php#L117-L118 . If we have a mapping for this we could use this as well there. Same for deviceDetection etc https://github.com/piwik/piwik/blob/2.11.2/plugins/DevicesDetection/API.php#L200-L201

@hpvd commented on January 23rd 2017

just put it into a complete picture of geographical segmentation https://github.com/piwik/piwik/issues/11261

Powered by GitHub Issue Mirror