Table of Contents

Statistics Plugin

statistics plugin by Andreas Gohr
Log and analyze access statistics

Last updated on 2008-06-15. Provides Admin, Action.
Compatible with DokuWiki 2008-05-05.

Similar to logstats, statdisplay.

Tagged with analytics, logging, statistics.

This plugin provides logging and statistics on views and visitors of your wiki. The statistics are not very wiki centric but are more close to what you'd expect from a typical web statistics package. It should be most useful to people using DokuWiki as their blog or homepage.

:!: This plugin needs a MySQL database. You need at least MySQL 4.1, MySQL 5.0 or higher is recommended.

The following statistics are currently provided:

For many of these stats, graphical diagrams are provided as well.

Download

Alternatively you can check out the plugin from my darcs repository with

darcs get http://dev.splitbrain.org/darcs/dwplugins/statistics

Changes

Installing

  1. Install the plugin through the Plugin Manager or manually.
  2. Create the needed MySQL tables with the provided db.sql file
  3. Configure the database access through the Config Manager

To create the needed MySQL tables you can

Method 1

# mysql -u db_user -p your_dokuwiki_database < /full/path/to/db.sql

Method 2

# mysql -u db_user -p your_dokuwiki_database
Enter password:
[...]
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> \. /full/path/to/db.sql

Upgrading

Upgrades may require database upgrades. Check the provided db.sql file. Updates statements are marked with their dates. Execute them on your database to upgrade it.

Acknowledgments

Known limitations

Request

Nice plugin…is there anyway to put the statistics on the a non admin page so users can view them?
Thanks!
Austen