| Name | Stats and Links Plugin |
|---|---|
| Version | 1.0.0 |
| Vendor | SGCIB |
| Author(s) |
|
| Contact | |
| Price | free |
| License | Open Source (LGPL) |
| Download JAR | statsLinks-1.0.0.jar |
| Source Control |
Description
This plugin add a link in "browse space" menu which leads to a page where you can find some statistics and a list of links of the space.
Prerequisites
If you haven't yet installed those plugin, you have to copy the followings jar files in WEB-INF/lib
| utilities-plugin-2.1.3.jar | Utilities Plugin |
| tracking-plugin-1.4.3.jar | Tracking Plugin |
The chart macro have also to be installed by the way that you prefer
| chart-plugin-1.5.jar | Chart Plugin |
Downloading & Installing
- Download from above the plugin jar.
- Install the plugin through Confluence's plugin upload feature.
Screenshots
Developer information
Web item
The link in "browse space" menu is added by a web-item as below.
<web-item key="space-statslinks" name="Stats Links" section="system.space" weight="40"> <label key="Stats and Links" /> <link>/statslinks/stat.action?key=$helper.spaceKey</link> </web-item>
Package action "Stat"
<xwork name="StatsLinksActions" key="StatsLinksActions"> <package name="Stat" extends="default" namespace="/statslinks"> <default-interceptor-ref name="defaultStack" /> <action name="stat" class="com.sgcib.confluence.macros.StatsLinks.StatsLinksAction"> <result name="success" type="velocity">/vm/statistics.vm</result> </action> <action name="stat-graph" class="com.sgcib.confluence.macros.StatsLinks.StatsLinksAction"> <result name="success" type="velocity">/vm/statistics-graph.vm</result> </action> <action name="intlink" class="com.sgcib.confluence.macros.StatsLinks.StatsLinksAction"> <result name="success" type="velocity">/vm/internallinks.vm</result> </action> <action name="extlink" class="com.sgcib.confluence.macros.StatsLinks.StatsLinksAction"> <result name="success" type="velocity">/vm/externallinks.vm</result> </action><action name="mailto" class="com.sgcib.confluence.macros.StatsLinks.StatsLinksAction"> <result name="success" type="velocity">/vm/mailto.vm</result> </action> <action name="resetcount" class="com.sgcib.confluence.macros.StatsLinks.StatsLinksAction" method="doReset"> <result name="success" type="redirect">/statslinks/stat.action?key=${key}</result> </action> </package> </xwork>
This package contains 5+1 actions. One by card of "links & stats" page.
- stat : statistics page (Top 5...) (Statistics.vm)
- stat-graph : graphical view of number of visitors by page (statistics-graph.vm)
- intlink : internal links in each page of the space (Internallinks.vm)
- extlink : external links in each page of the space (Externallinks.vm)
- mailto : email in each page of the space(Mailto.vm)
And the last action is to reset all page count.
The 6 actions extends the class com.sgcib.confluence.macros.StatsLinks.StatsLinksAction which allow to get ListLinks and StatsHelper objects for gathering information, and reset count to zero.
Class Java
please see [javadoc|http://]
Bugs
Please report bugs in comments.

Comments (4)
Dec 28, 2006
Anthony Belfiore says:
Does this work with latest trackingplugin 2.2.2a? I have utilities 2.1.3 and cha...Does this work with latest tracking-plugin 2.2.2a? I have utilities 2.1.3 and chart 1.5.
I'm getting an error when I click on the Stats and Links tab:
Cause:
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309)
at com.sgcib.confluence.macros.StatsLinks.stats.StatHelper.refreshStat(StatHelper.java:72)
Dec 28, 2006
David Peterson says:
I don't believe it will work, primarily because the Tracking Plugin 2.2 and abov...I don't believe it will work, primarily because the Tracking Plugin 2.2 and above must be installed by uploading them (or via the plugin repository).
There is a better way of accessing tracking data from version 2.2.2a and above. I don't have time to do it myself, but would be happy to help in integrating them together, as this looks like a nifty plugin.
Also, I will be releasing a plugin of my own shortly which will allow you to generate your own reports of this type in regular pages. Not as neat as the built-in tab, but quite flexible.
Sep 24, 2007
Guy Fraser says:
LGPL license is incompatible with Confluence license.LGPL license is incompatible with Confluence license.
Feb 26, 2008
Alexey Troshichev says:
Hello Can it gather statistic about downloads? I mean when we have any files in ...Hello
Can it gather statistic about downloads?
I mean when we have any files in attach, can it gather statistics about downloads.