The ActiveIP2Country plugin uses an IP-to-country database to determine the visitor's country. In contrast, Piwik normally guesses the visitor's country from his/her browser language and region.
Note: due to changes in IP block assignments, ActiveIP2Country does not attempt to correct earlier log_visit data.
This plugin uses any CSV (comma-separated values) file (named "ip-to-country.csv") containing IP address ranges (start and end expressed as longs) followed by a two letter ISO country code. Values may be double quoted. The country code can be upper or lower case.
The plugin will automatically generate a more compact, binary "ip-to-country.dat" file. To regenerate this file, simply remove it.
On my antiquated Athlon 1.4 GHz processor (test box):
If shared memory is available:
If updating the .csv file:
Attachment: 2010.01.12 update of ip-to-country.csv
Updates to the .csv file can be found at:
(This isn't being suggested for #45 due to trademark issues.)
I assume we can close this ticket, once GeoIP is in core? #1823
Yes, I'm rolling it into the new plugin.
Actually, I'll close this ticket now as the ip-to-country.csv file is longer being maintained. (4 months without an update)