geoip
geoip support enabled
geoip extension version 1.0.7
geoip library version 1004008
dev-php/pecl-geoip-1.0.7-r1
gentoo amd64
Piwik repport for region and city:
There is no data for this report because there is no location data available. To enable accurate geolocation, change the settings here.
Ok, I think you’re using a country database instead of a city database. If a city database was used, there would be more information about your location.
If you want Piwik to manage your GeoIP databases (in a later version there will be an auto-updater), download the GeoLite City database (link below), put it in the ./misc subdirectory of Piwik (named GeoIPCity.dat, not GeoLiteCity.dat) and follow the instructions at the end of this FAQ: How to - Analytics Platform - Matomo .
If you want to keep the databases where the PECL extension keeps them, then download the GeoLite City database, put it in the directory where the PECL extension looks for them & make sure to rename the database to ‘GeoIPCity.dat’.
You can figure out where the directory is by running: <?php echo dirname(geoip_db_filename(GEOIP_COUNTRY_EDITION));
Same with launch misc/others/geoipUpdateRows.php or new visits.
At launch of misc/others/geoipUpdateRows.php I have:
PHP Notice: Undefined index: lang in /home/first-world.info/stat/plugins/UserCountry/LocationProvider/Default.php on line 34
Did you download the GeoLiteCity database and put it in the directory the PECL extension is using?
Or did you put it in Piwik’s misc directory?
Did you rename it to GeoIPCity.dat?
If you put it into the misc directory, did you add ‘geoip.custom_directory=/path/to/piwik/misc’ to your php.ini file like it says here (How to - Analytics Platform - Matomo )?
Does your location in the admin tab provide city + region info next to the PECL extension option or just the country?
[quote=dragonx86]
With fixed (without GeoIPCity.dat):
geoip.custom_directory=/etc/php/geoip/
It work.[/quote]
Glad to hear it’s working!
[quote=dragonx86]
It’s not possible to fill this php setting into php and ship it into piwik (to prevent compilcated installation)?[/quote]
If you mean using ini_set to set it then no, since some shared hosts will disable it, and besides i’m sure some will not want to store the databases w/ Piwik (if that’s what you meant).
Btw, can you tell me what’s in your /etc/php/geoip/ directory? In our tests the PECL module would only work w/ the city database if it was named GeoIPCity.dat. It would be good to know if this is not always true.
Good news: GeoIP is now integrated in Piwik, enabling Accurate Visitors Geolocation in your Analytics reports. To enable GeoIP go to the Settings > Geolocation admin page, and follow the short instructions.
Good news: GeoIP is now integrated in Piwik, enabling Accurate Visitors Geolocation in your Analytics reports. To enable GeoIP go to the Settings > Geolocation admin page, and follow the short instructions.
We need YOUR help! We are running a crowd funding campaign to raise funds to implement the detailed Visitors Maps of Countries, Regions and Cities (for all countries)!
These maps will be beautiful, usable, and built using open standards SVG+JS. They will show detailed visitor count, conversion rates, by Country but also (New!) by city and region.