Viewtracker Supplier
Details| Name | Viewtracker Supplier |
| Prefix | viewtracker (required) |
Supported content
| Pages, Blog Posts, Spaces, Users
|
Provided by
| Viewtracker Plugin from version 1.1.0
|
Keys Supported|
| Key | Content Types | Return Type | Description |
| no key | Any | List of Views
| Returns the list of all users. |
| totalviews | Any | Text | Returns the total of views. |
| totalusers | Any | Text | Total amount of users. |
| allusers | Any | Text | All users: Can be rendered afterwards... |
View Supplier
Details| Name | View Supplier |
| Prefix | view (optional)
|
| Supported content | Tracked Views |
| Provided by | Viewtracker Plugin from version 1.1.0 |
Keys Supported|
| Key | Content Types | Return Type | Description |
| username | Tracked View | Text
| Returns the username. |
| viewdate | Tracked View | Date | Returns the date of the last view. |
| viewcount | Tracked View | Number | Returns the total number of views by this user. |
ExampleCreate 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 ExamplesShow 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.