Extension:Usage Statistics

Description
It is usually interesting to find out how you, as a user of the wiki have been performing over time. Just as interesting for wiki admins, is to find out how the wiki has been growing over time. This extension provide the capability to view this data in a graphical form. Note: currently, this extension has the limitation of being a bit slow in processing the data which may cause it to time out in cases of >100k pages.

Step 1
Download the extension code (all files) from SVN and place it in the extensions/UsageStatistics/ directory.

Step 2
Add the following text to your LocalSettings.php

Step 3
By default, the extension uses the GNUPlot extension for generating graphs. However, on some wikis it may not be possible to install the gnuplot program which the extension utilizes. Therefore, this extension can also use the little known Google Charts. There are trade-offs for both options:

Gnuplot Extension option
If you decide to go the gnuplot way, then follow the installation instructions to install the GNUPlot extension.

Google Charts options
If you decide to go the Google Charts option, then add in LocalSettings.php after the call to require_once for the extension.

Step 4
Log in as a user with administrative priviledges and go to your wiki's page entitled MediaWiki:Common.js. Make sure that this page contains a section on Dynamic Navigation Bars. If it does not, then you can copy it from Wikipedia wikipedia:MediaWiki:Common.js. It is highly recommended that if your wiki's page did not exist, that you copy the entire contents over from Wikipedia.

Next, go to your wiki's page entitled MediaWiki:Common.css. Make sure that this page contains definitions for NavFrame and all of the associated declarations. If it does not, then you can copy it from Wikipedia wikipedia:MediaWiki:Common.css. It is highly recommended that if your wiki's page did not exist, that you copy the entire contents over from Wikipedia.

After you are done, make sure to clear your browser's cache!

Usage
There should now be a new Special Page in your Special:Specialpages list called Usage Statistics. Go to this page. Select a Start Date, End Date, the interval, and the type (cumulative or incremental) of usage extraction.

Click the Generate Statistics button and voila. The output page will contain a graph of usage statistics for the logged in user.

If the logged in user has the viewsystemstats user right (by default, only members of the sysop and manager groups do), then in addition to their personal statistics, they will also see the usage statistics for the entire wiki both in graphical form and CSV raw data form.

Revisions

 * v1.11.1 - October 3, 2008 - Fixed a problem with older versions of MW
 * v1.11 - October 3, 2008 - added the ability to use Google Charts instead of gnuplot
 * v1.10 - October 2, 2008 - corrected a number of warnings that arize when executing by a user who does not have any edits themselves. Cleaned up the reported HTML errors.
 * v1.9 - Corrected an initialization problem with graph data when users don't have anything to display (thannk's to Wolcott)
 * v1.8 - Tim Starling corrected a security bug
 * v1.7
 * fixed a bug in generating day names
 * updated translations
 * v1.6 - February 29, 2008
 * Internationalized month names and weekday names in calendar lookup
 * improved the way detailed statistics are displayed
 * v1.5 - February 20, 2008
 * use wfLoadExtensionMessages only if it is available and if not (as is the case on some older MW installations), revert back to the old fashioned method of loading messages
 * use a new userright called 'viewsystemstats' to determine with system wide statistics should be displayed
 * v1.4 - February 17, 2008 - uses wfLoadExtensionMessages now for better fallback support and standardised i18n implementation for extensions
 * v1.3 - February 10, 2008 - added more i18n content
 * v1.2 - September 29, 2007 - fixed a bug where MySQL query would get too long when viewing stats for a large number of intervals. Added page statistics to graphs as second Y axis.
 * v1.1 - September 21, 2007 - fixed a bug where the wgDBprefix was hardcoded.
 * v1.0 - September 21, 2007 - published on MediaWiki