I have a 3rd party analytics setup to track confluence user interaction, and I want to enable the tracking based on the user group, for example, only track if users are from group 1 or group 2, if group 3, the analytics will not track. But I am having trouble accessing the user groups in the Custom HTML (where I put my analytics tracking code).
I know that the user macro can access these user attributes, but I am not able to use the macro in the Custom HTML, I tried to use AJS.params, but the list of attributes in the params doesn't contain user information.
Is there a way to get the user group in Custom HTML?