Jump to: navigation, search

Piwik[edit]

To track visits to tolabaki's websites we use piwik.

Piwik is set up in srv1 under the path `/var/www/www/analytics`.

Piwik provides two different ways to obtain the track records:

  1. Through javascript code being executed at the visitor's browser
  2. Through the web server's access logs

On our setup we prefer the second one.

Records are imported daily to the piwik database through the `/etc/cron.daily/piwik_import` cronjob.

   #!/bin/sh
   
   /var/www/www/analytics/misc/log-analytics/import_logs.py  --url=www.tolabaki.gr/analytics --idsite=1 /var/log/apache2/access-wiki-ssl.log.1 > /dev/null
   /var/www/www/analytics/misc/log-analytics/import_logs.py  --url=www.tolabaki.gr/analytics --idsite=1 /var/log/apache2/access-wiki.log.1 > /dev/null
   /var/www/www/analytics/misc/log-analytics/import_logs.py  --url=www.tolabaki.gr/analytics --idsite=2 /var/log/apache2/access-zizania.log.1 > /dev/null
   /var/www/www/analytics/misc/log-analytics/import_logs.py  --url=www.tolabaki.gr/analytics --idsite=2 /var/log/apache2/access-zizania-ssl.log.1 > /dev/null