Feature Proposal: Site Statistics Page
Motivation
TWiki currently has per-web statistics. It would be cool to have monthly site-wide statistics similar to the manually maintained on twiki.org at
TWikiOrgStatistics.
Description and Documentation
Add a
TWiki.SiteStatistics topic that has a table like in the example below that is updated by the statistics script on a daily basis, with a new entry each month. Fields recorded:
- Webs - number of webs
- Topics - number of topics across all webs
- Topic Views - number of topic views
- Topic Updates - number of topic updates
- Files Uploads - number of file uploads
- Users - number of registered users
- Data Size MB - size of
twiki/data/ in MB
- Pub Size MB - size of
twiki/pub/ in MB
- % Disk Use - disk use in percent (GNU Core Utilities are required on Windows)
- Top Contributors - 10 top contributors, with number of topic updates each
Conditionally add
ChartPlugin charts on top in case the plugin is installed.
Example
Content of
TWiki.SiteStatistics topic:
| Month |
Webs |
Topics |
Topic Views |
Topic Updates |
Files Uploads |
Users |
Data Size MB |
Pub Size MB |
% Disk Use |
Top Contributors: Topic Updates |
| 2011-03 |
24 |
111653 |
562623 |
3063 |
299 |
51164 |
1472.4 |
3724.7 |
56% |
TWikiRegistrationAgent: 785, PeterThoeny: 230, TWikiGuest: 48, SharonCook: 36, AlexanderAraratyan: 36, ShanaRavnsborg: 16, MichTan: 10, DipuDeshmukh: 10, ArvindSahay: 10, YoungwonKim: 8 |
| 2011-02 |
24 |
110939 |
526125 |
3540 |
254 |
50700 |
1413.4 |
3627.7 |
56% |
TWikiRegistrationAgent: 872, PeterThoeny: 178, GriselMedinaCapitao: 68, TWikiGuest: 50, DonMalik: 18, MarioSilvaPereira: 15, StefanoPasini: 14, NikolajKure: 13, RolandPorcio: 12, ReidPeryam: 12 |
| 2011-01 |
24 |
109982 |
542312 |
3641 |
314 |
50156 |
1353.3 |
3582.6 |
55% |
TWikiRegistrationAgent: 873, PeterThoeny: 207, TWikiGuest: 59, WarrenPierce: 29, DonMalik: 19, MariePiu: 15, KevinWesley: 13, AmitJainDCE: 13, RalfBaechle: 11, DmitrySorokin: 9 |
| 2010-12 |
24 |
109119 |
559413 |
3295 |
566 |
49609 |
1258.3 |
3523.6 |
55% |
TWikiRegistrationAgent: 603, PeterThoeny: 198, TWikiGuest: 62, GeorgeTrubisky: 25, SandorZelei: 14, ArchnaAgarwal: 14, DonMalik: 13, ScottGutman: 10, CraigMeyer: 9, AaronLWalker: 8 |
| 2010-11 |
24 |
108528 |
590253 |
3323 |
436 |
49270 |
1136.3 |
3461.6 |
54% |
TWikiRegistrationAgent: 720, PeterThoeny: 223, TWikiGuest: 58, VivianeKiyan: 29, SamuelMeehan: 22, JulianaBatista: 17, BrunoPandi: 14, RobinJacob: 12, ChuanzheLin: 12, ScottGutman: 11 |
| 2010-10 |
23 |
107784 |
541323 |
3067 |
203 |
48857 |
1062.2 |
3312.6 |
53% |
TWikiRegistrationAgent: 750, PeterThoeny: 261, TWikiGuest: 47, AsifIqbal: 27, SamuelMeehan: 21, DavidGribble: 20, SyedHaque: 11, JohnnyBispo: 10, AliKai: 9, YogeshTiwari: 8 |
Web Statistics Topics: Blog,
Codev,
Main,
Plugins,
Sandbox,
Support,
TWiki,
TWiki01,
TWiki02,
TWiki03,
TWiki04,
TWiki04x01,
TWiki04x02,
TWiki04x03,
TWiki05x00,
TWiki05x01,
TWiki06x00,
TWiki06x01,
WikiWed
Related: AdminToolsCategory
Impact
Implementation
--
Contributors: PeterThoeny - 2011-04-12
Discussion
Here is a radical idea: For open source projects it is difficult to estimate the actual use of the software. It would be useful to have anonymized statistics sent to twiki.org for statistical purposes. How about enhancing the statistics script to send $cfg{DefaultUrlHost}, # Webs, # Topics, # Topic Views, # Topic Updates, # Files Uploads, # Users, Data Size, Pub Size, % Disk Use back to TWiki.org on a monthly basis? The raw data would not be published, but aggregated data. I am concerned about privacy. Wondering what people think about this idea.
--
PeterThoeny - 2011-04-13
This proposal is now accepted by 7 day feedback period.
I plan to enhance the statistics also to send the following anonymized data to twiki.org via an http GET: Site hash (built from $cfg{DefaultUrlHost} and $cfg{ScriptUrlPath}) for anonymous tracking, log month, number of webs, number of topics, topic views, topic saves, file uploads, number of users, data size, pub size, disk use, number of plugins, twiki version. Example:
In return, twiki.org will send the number of plugins available, so that the site statistics page can show
28 of 195 in the Plugins column. There will be an opt-out option in configure for those who do not want to participate, and a note in the release notes describing the change in policy.
Feedback?
--
PeterThoeny - 2011-04-19
This is now implemented and documented in
SVN trunk, scheduled for TWiki-5.1.0
--
PeterThoeny - 2011-04-25