Software-Entwicklung und Atlassian-Experte


Confluence Plugins

Viewtracker Supplier

The Viewtracker Plugin provides supplier support for advanced reporting.
The features described below require the Reporting Plugin.

Viewtracker Supplier


Details
NameViewtracker Supplier
Prefixviewtracker (required)
Supported content
Pages, Blog Posts, Spaces, Users
Provided by
Viewtracker Plugin from version 1.1.0


Keys Supported
KeyContent TypesReturn TypeDescription
no keyAnyList of Views
Returns the list of all users.
totalviewsAnyTextReturns the total of views.
totalusersAnyTextTotal amount of users.
allusersAnyTextAll users: Can be rendered afterwards...




View Supplier


Details
NameView Supplier
Prefixview (optional)
Supported contentTracked Views
Provided byViewtracker Plugin from version 1.1.0


Keys Supported
KeyContent TypesReturn TypeDescription
usernameTracked ViewText
Returns the username.
viewdateTracked ViewDateReturns the date of the last view.
viewcountTracked ViewNumberReturns the total number of views by this user.




Example

Create a report of all pages in a space and display the name of the page, total views, total users and a list of all users:

{report-table}
{content-reporter:types=page}{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 Users}{report-info:viewtracker:totalusers}{report-column}
{report-column:title=Users List}{report-info:viewtracker:allusers|render=wiki}{report-column}
{report-table}


In this example the page "Knowledge" does not contain the viewtracker plugin.




Advanced Examples

Show the last 5 pageviews of all children:

{report-table:maxResults=5}
  {expanding-reporter:viewtracker:|as=view}
    {local-reporter:page:children}
    {date-sort:viewdate|order=descending}
  {expanding-reporter}

  {report-column:title=Date}{report-info:expanded:view > viewdate}{report-column}
  {report-column:title=Page}{report-info:expanded:item|link=true}{report-column}
  {report-column:title=User|injected=true}[~%expanded:view > username%]{report-column}
  {report-empty}_No views tracked._{report-empty}
{report-table}




Show all pageviews of all spaces (except pageviews by user "admin") since 1 Oct 2010 grouped by user:

{report-table}
{grouping-reporter:expanded:view > username|as=User}
  {grouping-stats:expanded:view > viewdate|as=Viewdate}
  {expanding-reporter:viewtracker:|as=view}
    {content-reporter:space=@all}
    {user-filter:username|users=-admin}
    {date-filter:viewdate|minValue=1-Oct-2010|format=dd-MMM-yyyy}
    {text-sort:username}
  {expanding-reporter}
{grouping-reporter}

{report-column:title=User|injected=true}[~%grouped:User%]{report-column}
{report-column:title=Last View}{report-info:grouped:Viewdate > stats:max value}{report-column}
{report-column:title=Pages Viewed}{report-info:@items|link=true}{report-column}

{report-empty}_No views tracked._{report-empty}
{report-table}



Please note that views of a page are only tracked if the viewtracker macro is on that page.



Comments