I’m facing a problem that it seems impossible to set the country for intranet visits. We have setup PIWIK on our website, but the website is visited both from the internet and our intranet. If a user visits from the intranet, PIWIK seems to use the locale defined on the machine as country (in our case mostly France, because our computers are configured in French). It would be nice to be able to configure the country to choose given certain IP ranges. That would allow us to set the country to Luxembourg for all our intranet visitors.
PS: I just tried GeoIP as indicated in some other thread but as I expected, it didn’t solve the problem. I also set enable_language_to_country_guess = 0 in the config file, but no change.
I just tried the plugin, created the following rule in the XLS
10 0 0 0 10 255 255 255 technolink.lu if ($visitorInfo[‘location_ip’]>=‘165813750’ && $visitorInfo[‘location_ip’]<=‘182460405’) { $hostname =‘technolink.lu’; }
added the line to the .php file, restarted the web server but I still see the US flag for my computer (my computer is configured in English and French flag for other computers).