Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Restrict View Tracker Information visible to Admin users

Vijay Krishna B
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 30, 2013

I want to show the view tracker information only to admin users.I tried two options here.

  1. Added view-tracker macro in 'XYZ' page and for this page i added a page level view restriction for admin users .I included this page in the required page which i want to track. But it is tracking only the admin users only, not all the users.
  2. Inside 'show-if' macro i added the 'view-tracker' macro but this way also working same like above.

The requirement is to track the information of all the users who visited the page but the tracking information is visble to only admin users.Hope i'm clear.

1 answer

1 accepted

3 votes
Answer accepted
Remo Siegwart
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 30, 2013

When you use the Viewtracker macro inside a show-if block, it won't get executed for the other users and won't increase their view counters. But you could hide the output of the main Viewtracker macro and use the undocumented Viewtracker-Report macro to display the data in read-only mode:


{viewtracker:hide=true}

{show-if:group=confluence-administrators}
{viewtracker-report}
{show-if}

Hope this helps

Cheers
Remo

Vijay Krishna B
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 30, 2013

Thanks Remo this is working but i changed a little bit to show the report in "hide and collapse" view i added the {viewtracker} macro inside {show-if}

{viewtracker:hide=true}

{show-if:group=confluence-administrators}
{viewtracker}
{show-if}

Jorge
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2013

hi guys, this might be a newbe question, but where do I insert this wikimarkup code. I'm using Confluence 5.3 and no wikimarkup macro is available or any other place i can find.... thanks!

Kay Brown
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2013

Hi Jorge, There is an insert menu that is indicated by a + (plus sign). Click that and select wiki markup. It will open a dialog box where you can put the wiki markup.

Regards,

Kay

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events