Piwik

From YobiWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Installation

cf http://piwik.org/

apt-get install php5-gd
/etc/init.d/apache2 restart
wget http://piwik.org/last.zip

Unzip it under e.g. <your website>/piwik
And prepare a Mysq database:

mysql> create database piwik;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL ON piwik.* TO piwik@localhost IDENTIFIED BY 'piwikpassword';
Query OK, 0 rows affected (0.00 sec)

Piwik needs write access to some parts of the install in piwik/:

mkdir tmp
chown www-data:www-data config tmp

Now you can visit http://<your website>/piwik and follow instructions to add the first site.
For more than one site, log in and check admin/sites

Documentation

Injection

of the javascript code into

Mediawiki

See here

Gallery2

See here

Wordpress

See here