[xwiki-users] Statistics for Pages
Hey, Are there snippets or apps out there that allow you to get the stats for single pages? I've only seen that let you find the stats for a group of pages. I also can't find the API to allows me to customize stats aggregation from the stats module. Can anyone help? Thanks, Felix
Hi Felix, On 08/04/2010 12:21 AM, Meng Wu wrote:
Hey,
Are there snippets or apps out there that allow you to get the stats for single pages? I've only seen that let you find the stats for a group of pages. I also can't find the API to allows me to customize stats aggregation from the stats module. Can anyone help?
If you want custom stats then you'll have to query yourself the xwikistatsdoc ( http://platform.xwiki.org/xwiki/bin/view/DevGuide/DsXWikiDocumentStats ) table. Take a look at http://code.xwiki.org/xwiki/bin/view/Snippets/NumberOfEditedArticlesPerDayAn... or http://code.xwiki.org/xwiki/bin/view/Snippets/MostViewedArticlesSnippet . Note that xwikistatsdoc already contains aggregated data and the lowest unit of time for which stats are aggregated is a day. The main information that you can extract for a particular document is the number of views/edits per day/week/month/year (i.e. view/edit trend for a given page) Hope this helps, Marius
Thanks,
Felix
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Marius Dumitru Florea -
Meng Wu