Hey, maybe that's already possible and i just don't know how. Is there a way i can compare guests, registered users, premium users (usergroup) and moderators? I really would like to see the difference between all those users on my site. Thanks in advance Flo
No, the system does not log specific usergroups (mainly because Google Analytics does not allow you to set multiple values on a per user/page view basis). And since a user can have more than one usergroup, that's the issue.
Thanks for your answer! Since i don't have multiple usergroups, could you explain it to me how i could add that manually (by template changes)? That would be really helpful!
Not sure off the top of my head since I've never tried to do it (like I said, since XenForo can have multiple usergroups per user it was always an issue). But if you wanted to do it and just ignore secondary usergroups or something, I suppose you could do that. If you aren't familiar with XenForo development, you can probably find someone a consultant who could do it for you on xenforo.com (I think they have an area just for that).
Hey Shawn, i know i can do it with this code (in the original XenForo analytics code) _gaq.push(['_setCustomVar', 1, 'Usergroup', <xen:if is="{xen:helper ismemberof, $visitor, 1}"> 'Unregistered-1', <xen:elseif is="{xen:helper ismemberof, $visitor, 2}" /> 'Registered-2', <xen:elseif is="{xen:helper ismemberof, $visitor, 3}" /> 'Administrator-3', <xen:elseif is="{xen:helper ismemberof, $visitor, 4}" /> 'Moderator-4', </xen:if> 1 ]); Code (markup): But since your analytics code looks so much different, i'm not sure how to edit that!
That code is from the old deprecated version of Google Analytics (pre-Universal Analytics). You would need to use custom dimensions, not custom variables. See: https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#dimension