Statistics Plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" unknown
  • 2011-05-25 "Rincewind" unknown
  • 2010-11-07 "Anteater" yes

plugin Log and analyze access statistics

Last updated on
2008-06-15
Provides
Admin, Action
Repository
Source

Similar to logstats, quickstats, statdisplay

Tagged with logging, mysql, 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:

  • Popular Pages
    • the most viewed pages in the selected time frame
  • Incoming Links
    • the top referrers in the selected time frame
  • New Incoming Links
    • the top referrers which were not seen before the selected time frame
  • Outgoing Links
    • the most clicked outgoing links in the selected time frame
  • Search Phrases
    • the top search phrases people used in search engines to find your wiki in the selected time frame
  • Search Words
    • the top search keywords people used in search engines to find your wiki in the selected time frame
  • Search Engines
    • the most used search engines to find your wiki in the selected time frame
  • Browsers
    • the most used browsers to view your wiki in the selected time frame
  • Operating Systems
    • the most used operating systems used by your visitors in the selected time frame
  • Countries
    • where your visitors came from in the selected time frame
  • Resolution
    • the screen resolution used by your visitors in the selected time frame

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

Download

Please use the download link provided above for downloading the plugin.

Changes

Installing

  1. Install the plugin through the Plugin Manager or manually.
  2. Create the MySQL database. 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

To create the needed MySQL tables you can

  • 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.
  • import manually using MySQL in your shell

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

  • Currently only users with JavaScript enabled are logged
    • this can be easily fixed by placing some <noscript> code in the template, I just need to investigate that
    • when fixed, stats about search bots could be added
  • some more wiki specific data would be nice (edits, minor edits, internal searches)
  • the search word parsing is a bit flaky (“don't” is two words)

Language

Adding multi-language support is quite simple. You can see details, download modified admin.php and some translation files here : http://nliautaud.fr/wiki/articles/dokuwiki_statistics_lang

Nicolas Liautaud 2010/09/26 18:10

Questions

Whats the definition of “visits (sessions)” and “unique visitors” at the overview page? — lupo49 2010/07/19 15:23
In general, a visitor (“unique visitors”, defined by IP) can visit several times the wiki (“visits (sessions)”, defined by activity time), and view several pages during every visit (“view pages”, defined by displayed pages). — Nicolas Liautaud
I've got MySql running and the db configured through db.sql. However, no entries are made in the db. My guess it's some sort of issue with access to the db. Is there a log file anywhere, in which I could figure out if and how the plugin tries to access the db?
Is it somehow possible to view statistics without being an admin? I want it in a restricted namespace instead so I don't have to give everyone who needs to view the stats admin rights? /Emil
plugin/statistics.txt · Last modified: 2011/04/29 13:07 by 195.42.215.17
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate