I would like to disable tracking for admin users. I do not want to throw off my tracker from this viewer group. For a larger site employees vs non-employee groups and so forth.

Right now I use gAnalytics in a block that is disabled for each admin, but the feature would be better if it came with this module.

Thanks

Comments

budda’s picture

Assigned: Unassigned » budda
Status: Active » Fixed

I've updated the 4.7 module to include the ability to define what user roles should be tracked. Let me know if it doesn't work for you - my current test site is a bit limited in user roles.

If a user has multiple roles assigned to their account, if at least one of the roles should be tracked, then the user will be tracked.

Tobias Maier’s picture

I think it would be better if I coud select which user should NOT be tracked.
because this does not break the current behavour (it works the same way after the update)

and maybe if I could assign different profiles to specific roles.

the change you did was not a trivial change.
so add an update (in the .install-file; set all roles should get tracked) because someone could oversee that he has to select a roles who should get tracked now...

thanks

budda’s picture

.install file added to set all roles to being tracked by default. It first checks that the role is not already set up to be not tracked, for anybody who used the Google Analytics module recently.

I've done some quick testing on this, no errors appeared, but it's late and I'm thinking about bed now rather than PHP.

Anonymous’s picture

Status: Fixed » Closed (fixed)