Extension:WSStats

WSStats extension counts pageviews by user

Will be available on Github this week!


 * Version 0.1.3 : Fixed error in MySQL
 * Version 0.1.2 : Skip usergroup results
 * Version 0.1.1 : Initial release

Configuration parameters
By default Anonymous users and sysops are skipped from stats recording. To change this add following to LocalSettings.php..

Start with : $wgWSStats=array; Allow statistics for anonymous users.. //Record anonymous users $wgWSStats['skip_anonymous']=false; Skip users in the following groups.. //Skip if user is in following groups $wgWSStats['skip_user_groups'][]='sysop'; $wgWSStats['skip_user_groups'][]='admin';

Using the parser functions
To retrieve statistics you can use the following parser function :

Ask number of hits for page id : 9868 Ask number of hits for page id : 714 since start date 2018-09-01  Ask number of hits for page id : 714 since start date 2018-02-01 and end date 2018-09-08  If no statistics the result will be 0