Piwik

This article describes the installation and configuration of Piwik Web Analytics software.

USE flags
Piwik uses the,  ,  , and   USE flags on. Be sure they are enabled by editing :

Emerge
In order to see geographical IP addresses, the geoip PHP extention is required:

php.ini
Piwik requires the following change in :

OpenRC
Restart the web server and php services. In the example below the Nginx server is used:

Piwik software
Change to web server public directory:

Download and extract piwik analytics:

MySQL
Create a database and user for Piwik (using mysql example):

Create directories and change write permissions required by Piwik:

In a browser navigate to piwik and follow the configuration instructions.

http://localhost/piwik

Change back the write permission on directories except on :