I want to remain using Universal Google Analytics outside of Confluence (rather than using a plugin).
My wiki is for employees and requires login, so I am in compliance with the User-ID policy as far as I can tell. My users login via an LDAP directory.
I'd love to be able to track who has viewed what.
I think I need to add a USER_ID to this code, but I'm not sure which one to use. I've tried global variables: $current_user_email and current_user_email
ga(‘set’, ‘&uid’, {{USER_ID}}); // Set the user ID using signed-in user_id.
Additionally, the &uid portion of the GA tracking code is throwing an error in my theme.