Tracking Info

Description

This macro outputs tracking information about the current (or any other) page, including the number of times it has been viewed, the first view date and the last view date.


Parameters

NameRequiredAvailable InMigratable to Cloud?Default ValueDescription
[default]
 Optional
Server
No
current page

The page/attachment to report on.

For attachments parameter format should be "page^attachment.ext".

e.g.: "Home^attachment.png".

value
 Optional
Server
No

The value to report. May be one of the following:

  • first view date - The date the content was first viewed by someone other than the creator.
  • last view date - The date the content was last viewed by someone other than the last editor.
  • view count - The number of times the content has been viewed since the 'first view date'.
  • age in days - The number of days between the day the content was created and now.
  • views per day - The average number of views per day since the content was created.
  • id - The id of the content.
  • title - The title of the content.
  • space key - The space key of the content
  • creation date - The date the content was created.
  • modification date - The date the last time the page is updated.
digits
 Optional
Server
No
For values returning a number, the minimum number of digits to output.
type
 Optional
Server
No
plain text
For values returning a number, the type of image to use for the counter (e.g. "gif", "jpg", etc). If not set, plain text will be output.
images
 Optional
Server
No
For values returning a number, the style of image to use if type is not text. Defaults to the built-in 'odometer' style.
format
 Optional
Server
No
For values returning a date, the date format (eg. 'dd-MMM-yyyy'). May also be 'long', 'medium' or 'short', which will use the system defaults for those formats.


Editor View