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.
Options

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

edited November 2011 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

  • Options
    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

Sign In or Register to comment.