I use Drupal 6 and Google Analytics module. I'd like to have custom dimensions to add segmentation for anonymous/authenticated users. I have added a custom dimension with [user-role-name] token. But I have a lot of roles for authenticated users, and then I get a long list of roles in GA data. I'd like to have only anonymous vs authenticated.

Is there anyway I could filter it with GA module in order to send only this two roles names? Thanks.

1 Answer 1


There currently isn't a role token that provides only a anonymous/authenticated role. The only way to do this (without removing all roles) is to create your own custom token to use with GA.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.