Languages

Enquiries: info@infomagnet.com / +44 (0)20 7193 3323

google analytics

How not to track pages in google analytics for certain roles

Google analytics module lets you select what user roles to track, however, it is likely that you will want both anonymous and authenticated users to be tracked. If you select authenticated users, it means that any account on your website will have this role, which means, in reality, that every single role will be tracked regardless of whether you have specifically selected that role to be tracked.

This is explained in the following article on drupal.org, you will need a bit of PHP knowledge to follow this up: Roles opt-out AND path filter functionality: a snippet. Follow that link up to check on the complete snippet to be used.

Posted by ariel on October 8th, 2010
Comments: 0