Matomo s a real time web analytics software program. It provides you with detailed reports on your website visitors: the search engines and keywords they used, the language they speak, your popular pages, and more.
Install lighttpd, PHP, and MySql
For installing the additional packages first activate community packages and update the package index
Install the required packages:
Edit lighttpd.conf (/etc/lighttpd/lighttpd.conf) and uncomment the line:
Edit mod_fastcgi.conf (/etc/lighttpd/mod_fastcgi.conf), find and change /usr/bin/php-cgi to /usr/bin/php-cgi82.
lighttpd service and add it to default runlevel
Install extra packages:
Installing and configuring Matomo
Matomo needs some additional packages
Create the a folder named webapps
Download the source code
Unpack the archive and remove it afterwards
Change the folder permissions
Make a symlinks to the piwik folder
Configuration and start MySql
Configuration of Piwik
Browse to http://WEBSERVER_IP_ADDRESS/piwik/ and the configuration process will start.
It's still possible to upgrade Piwik by replace the old files with new ones. But a faster way is to use the integrated upgrade mechanism of Piwik itself. Just follow the instructions mentioned in the web interface.