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
Published Thursday in Confluence

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

348 views 16 18
Read article

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