Probably better to apply special rules that route a request away from the application (XenForo) only if the file exists in the filesystem. I mean if you want to do it “right”.Heh, I didn't remember that I had created special rule for serving *.js files, had to create exempt for that. Once again, can only blame myself![]()
POST https://www.google-analytics.com/mp/collect?measurement_id=G-xxx&api_secret=xxx resulted in a 502 Bad Gateway response:<!DOCTYPE html><html lang=en> <meta charset=utf-8> <meta name=viewport content="initial-scale=1, minimum-scale=1, w (truncated...)There is something wrong with GA in general where it looks like some sort of ghost bots in Singapore are able to take the measurement-id (which is public) and directly ping Analytics over and over, so its a useless service now for me. I can't tell you for how many months, maybe even years, I was trying to stop this traffic, only to find its not even hitting the CDN or origin at all. Its just phantom ghost traffic![]()

There isn't a realistic way. Google Analytics custom fields are singular values (not arrays). In Google Analytics, user_group_id ends up being set to the first user group ID you have in your track list that the user is part of (primary or secondary).@digitalpoint we're looking at GA and the only user groups available to report on are 0 and 1 (guests and members).
As you can see in the screen cap below, we're tracking more usergroups than that. We have been for a long time.
Today I added Member Restriction - Ad Blocker because we want to track these, but then noticed that we can't report on other usergroups - I guess because they are not the primary usergroup?
How can we track secondary usergroups?
Thanks
View attachment 347108
ba_google_analytics template and have a new Google Analytics variable for your property that is set based on the user being a member of your Ad Blocker group. But again... you can't really use the existing user_group_id variable because it's a singular value.Thanks, Shawn. Could we create a boolean GA variable 'is an adblocker' which is set when the visitor is_member_of the specific secondary usergroup?There isn't a realistic way. Google Analytics custom fields are singular values (not arrays). In Google Analytics, user_group_id ends up being set to the first user group ID you have in your track list that the user is part of (primary or secondary).
Being unique to your setup, your best bet would be to edit theba_google_analyticstemplate and have a new Google Analytics variable for your property that is set based on the user being a member of your Ad Blocker group. But again... you can't really use the existing user_group_id variable because it's a singular value.
The other option would be to use the existing option and reorder them so the Ad Blocker group is higher up the list (again, it logs the first match in your sorted order). But then if someone was part of that group, you wouldn't see them as part of the other groups... because (as I keep saying), it can only be a singular value on Google's side.
We use essential cookies to make this site work, and optional cookies to enhance your experience.