Restrict View Tracker Information visible to Admin users

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

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

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}

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!

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

869 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you