When trying to set up events within google analytics or google tag manager, it would be helpful if we could set an ID to a group. That way, when it appears, a call can be made that triggers an event and we could better understand how users are interacting within the app.
Say for example, a user clicks something, one bubble group is hidden and another bubble group is shown. I’d like to trigger an event when that group is shown. But at the moment, it’s difficult to differentiate groups because their divs are pretty generic. Example:
<div class="bubble-element Group" style="display: block; box-sizing: border-box; height: 218px; position: absolute; z-index: 6; left: 12px; top: 280px; width: 295px; border: 1px none rgb(107, 107, 107); border-radius: 2px; box-shadow: none; background: none transparent;">
Alternatively, I could set up events onclick event if that could somehow be added as a workflow option. For example (and this is for a native app, could work similarly in web), the ability to fire something like below when a link is clicked
onclick="window.analytics.trackEvent('Category', 'Action', 'Label', Value)"
Having either of these options would be incredibly useful for measuring effectiveness, etc.