Tracking the usergroups? Or just putting "Registered"?99% sure that this doesn't work with the new Google Universal Analytics.
I was referring to the code in general, its been completely changed for Universal.Tracking the usergroups? Or just putting "Registered"?
I haven't switched to universal as nothing has really convinced me to yet.
Oh. Mind sharing?I was referring to the code in general, its been completely changed for Universal.
Sorry never got around to updating it.Oh. Mind sharing?
Finally updated it to work with Universal.
In Google Analytics go to the Admin tab and select Custom Definitions under your Property. Add your new Custom Dimension's, I only did a Logged-In and Guest.
View attachment 139661
Add the new code to the google_analytics template on your website like this (be sure that your dimension numbers match with the code on Google Analytics):
PHP:ga('create', '{$xenOptions.googleAnalyticsWebPropertyId}', 'auto'); <xen:if is="{$visitor.user_id}">...
It should start tracking right away however I think it took a few hours before it showed up in the same day report.@DBA how long after I change the Google_Analytics template, add the code, and the custom Dimensions in GA will it start to track the different user Groups? Hours, days, weeks?
Possibly...somewhere along the lines the code got screwed up. Prior to that it was working fine.Wow, it's been a year since this was last replied to... time goes by so quickly!
Is this still a viable way to track usergroups in Google Analytics?
@DBA & @AzzidReign
We use essential cookies to make this site work, and optional cookies to enhance your experience.