Our shipped report template displays pages per Space. In order to report over pages from all spaces in your Confluence, go to
<confluence-Base>/admin/plugins/viewtracker/configure.action
and either:

  • Modify the default report template accessible in the Viewtracker and replace @space by @all
    This causes to no more restrict to the space you are currently in, but to always include all pages.
  • Replace the Report template as a whole by the following code. It consists of above mentioned change, our default report template with @space replaced by @all

    h2. Most viewed pages
    
    {chart:type=bar|orientation=horizontal|dataOrientation=vertical|width=400|height=300|legend=true|colors=#6699CC,#003366|dataDisplay=after}
    {report-table:maxResults=10}
    {content-reporter:space=@all}
    {number-filter:viewtracker:totalviews|required=true}
    {number-sort:viewtracker:totalviews|order=descending}
    {content-reporter}
    
    {report-column:title=Page}{report-info:title|link=true}{report-column}
    {report-column:title=Total Views}{report-info:viewtracker:totalviews}{report-column}
    {report-column:title=Total Visitors}{report-info:viewtracker:totalusers}{report-column}
    
    {report-empty}_No views tracked._{report-empty}
    {report-table}
    {chart}
    
    \\
    
    h2. Most active visitors
    {chart:type=bar|orientation=horizontal|dataOrientation=vertical|width=400|height=300|legend=true|colors=#6699CC,#003366|dataDisplay=after}
    {report-table:maxResults=10}
    {grouping-reporter:expanded:view > username|as=User}
    {grouping-stats:expanded:view > viewcount|as=Viewcount}
    {expanding-reporter:viewtracker:all|as=view}
    {content-reporter:space=@all}
    {text-sort:username}
    {expanding-reporter}
    {number-sort:grouped:Viewcount > stats:sum|order=descending}
    {grouping-reporter}
    
    {report-column:title=User}{report-info:grouped:User|link=true}{report-column}
    {report-column:title=Total Views}{report-info:grouped:Viewcount > stats:sum|format=#}{report-column}
    {report-column:title=Total Pages Viewed}{report-info:grouped:Viewcount > stats:item count|format=#}{report-column}
    
    {report-empty}_No views tracked._{report-empty}
    {report-table}
    {chart}

(warning) Please note that this can have an impact and/or be slow depending on the number of pages and database performance - we have not thoroughly tested this yet.

Labels (0)

  • No labels

Comments  (0)

Attachments  (0)

Add Attachment
No files shared here yet.