Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

how to let google analytics only track the members or guest users, not admin.

edited 2011 11 in Vanilla 2.0 - 2.8
i don't want google analytics track the admin( or other specific user id), only track other users(linke guest and members.)

is there any solution via add some parameters to ga code in header.

wordpress has a solution,like:

<?php global $user_ID; if ( 5 != $user_ID) : ?> //put google analytics track code <?php endif; ?>

Best Answer

  • ddumontddumont ✭✭
    Answer ✓
    you put the analitics code in the pocket and then make it "show" for only member role

    There was an error rendering this rich post.

Answers

  • ddumontddumont ✭✭
    I believe you can make a pocket that only will show for certain roles.

    There was an error rendering this rich post.

  • @ddumont the pocket only allow put code in , not
  • ddumontddumont ✭✭
    Answer ✓
    you put the analitics code in the pocket and then make it "show" for only member role

    There was an error rendering this rich post.

  • @ddumont thank you so much, got it.
Sign In or Register to comment.