DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:statdisplay

This is an old revision of the document!


Statdisplay Plugin

Compatible with DokuWiki

Elenor of Tsort

plugin Displays various statistics and bar graphs computed using a log file of all access to DokuWiki pages

Last updated on
2016-08-29
Provides
Syntax
Repository
Source
Requires
logstats

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to authorstats, statistics, stats

Tagged with chart, statistics

A CosmoCode Plugin

The statdisplay plugin displays various statistics computed using a log file (NCSA combined i.e. like Apache) of all access to DokuWiki pages. The logfile can be read from an Apache log file, or if not available, generated using the logstats plugin.

:!: All generated statistics only use pure PHP and graphs rendering needs GD PHP extension. (Be aware that this particular PHP extension might not be available at your webhosting provider.)

Note: this a complete rewrite of the Plugin originally written by Jean-Françcois Lalande. All previously analyzed data will be analyzed again.

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Log Analysis

Once installed and configured through the Configuration Manager, it will automatically start to analyze the log file. To limit the time and memory consumption of the log analysis, this is done in chunks of maximum 10000 lines per run. The log file analysis is triggered through DokuWiki's indexer mechanism - there is no need to trigger anything manually.

Limitations

The plugin tries to limit it's memory usage as far as possible. The log file is only read line-by-line. However all aggregated data is held inside a single memory structure. If you have a lot of accesses, or are running the plugin over a very long period of time, you may need to increase the memory size limit in your php.ini file.

Syntax

To show the result of the log analysis one or more syntax commands need to be used on a wiki page.

The general syntax asks for a command optionally followed by a graph parameter and/or month_year keyword after question mark. If no month is given, the current month is used. Below are all supported syntaxes shown, but not all graph/nograph month/nomonth combinations are shown.

If you want to see non-cached, most current data on the page, it is recommended to add a ~~NOCACHE~~ macro to the page.

Analysis Progress

Displays a simple progress bar to show how much of the log file was already analysed.

{{statdisplay>progress bar}}

Access Summary

Gives a summary table over all accesses that were ever logged:

{{statdisplay>all}}

Get the summary as a line graph:

{{statdisplay>all?graph}}

Limit the graph to a time intervall:

{{statdisplay>all?graph Jan_2011 Dec_2012}}

Month Overview

Give detailed summary table on the accesses during a month.

{{statdisplay>one month}}

Limit the table to a specific month:

{{statdisplay>one month?Oct_2011}}

Daily Accesses

Show the accesses of each day in the current month:

{{statdisplay>month by day}} 

Show the daily accesses as graph:

{{statdisplay>month by day?graph Oct_2011}}

Hourly Accesses

Show how accesses were spread over the different times of the day during the month:

{{statdisplay>month by hour}}

Graph of a particular month by hour:

{{statdisplay>month by hour?graph Oct_2011}}

Top Referrers

Show where people came from this month:

{{statdisplay>top referers}} 

Top Entry-Pages

Show on which pages users arrived first this month:

{{statdisplay>top entries}}

Top URLs

Show the most popular pages in your site this month:

{{statdisplay>top urls}}

Top Browsers

Show the most used browsers this month:

{{statdisplay>user agents}}

Traffic by User

This is a bit more special. It lists the authenticated users that created the most traffic on your site during the last 7 days:

{{statdisplay>traffic by user}}

To show the top 10 users as a graph use this. The workday average is shown as a red line.

{{statdisplay>traffic by user?graph}}
plugin/statdisplay.1472462464.txt.gz · Last modified: 2016-08-29 11:21 by grosse

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki