Table of Contents

Statistics Plugin

Compatible with DokuWiki

Hrun, Ponder Stibbons, Binky, Weatherwax, Elenor of Tsort, Detritus

plugin Log and analyze access statistics

Last updated on
2024-01-30
Provides
Admin, Action
Repository
Source

This plugin provides logging and statistics on views and visitors of your wiki. The statistics are a mix of wiki centric stats (like number of edits) and typical web statistics (views, visitors). It should be most useful to people using DokuWiki as their blog or homepage but provides useful stats for internal use as well.

:!: 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 nearly all these stats, graphical diagrams are provided as well.

Download

Please use the download link provided above for downloading the plugin. Be sure to read about upgrading first, if you are running an older version already.

Changes

Installing

Requirements

Installation

  1. Install the plugin through the Extension Manager or manually.
  2. Create the MySQL database (see below). Without this you wont be able to do the next step.
  3. Create the needed MySQL tables with the provided db.sql file
  4. Configure the database access through the Config Manager

DB creation

On the shell run the following commands:

# mysql -u root -p
MariaDB [(none)]> CREATE DATABASE stats;
MariaDB [(none)]> \q

To create the needed MySQL tables you can

  1. either use phpmyadmin's import function
    • Select the database that is used by your DokuWiki and chose “Import” from the top-menu, then upload the file.
  2. import manually using MySQL in your shell
    # mysql -u db_user -p your_dokuwiki_database < /full/path/to/db.sql

Upgrading

Upgrades will most probably require database upgrades. I recommend to do them before updating the plugin.

  1. Have a look at the current db.sql.
  2. Search this file for lines starting with -- UPGRADE
  3. Find the first such line containing a date newer than your plugin version
  4. Copy all following lines and apply them to your existing database

Please note that, depending on the amount of data in your database, these updates can take a really long time. I suggest to run these updates via the command line instead of using a web based tool like PHPMyAdmin.

Known limitations