The discussion is about implementing Google Analytics (GA) event tracking in Discourse. scotta initiated the conversation, seeking guidance on adding GA event tracking to his Discourse installation. He listed several events he wanted to track, including logging in, creating topics, and starring topics.
rubydoob suggested adding key events like registration, confirmed registration, and first login. scotta agreed to build on the list once he figured out how to implement GA event tracking.
The discussion evolved into the idea of creating a generic metrics framework, allowing users to track data points with providers like Google Analytics or Mixpanel. rubydoob proposed using Segment.io for integration, while Eric_Schleicher agreed on the need for a generic framework but questioned whether it’s a support issue or a plugin topic.
Dreamhearth shared his idea of adding a view for each event, allowing for easy extension via plugins. scotta recommended iterating on the implementation, starting with GA and code events.
The conversation also touched on the lack of built-in GA events in Discourse, requiring users to code and fire events themselves. Randall_Helms asked for clarification on this point, and riking suggested using Ember to wire up events.
There were also suggestions for creating a wiki post on GA events listener and integrating GA using Google Tag Manager. john_mardlin expressed interest in such a resource, and Randall_Helms proposed discussing the topic further.
Some users, like thiago, shared their experiences with tracking events, and abrambailey asked about the customization of events when adding GA tracking code to Discourse.
Overall, the discussion highlights the need for a generic metrics framework and the challenges of implementing GA event tracking in Discourse.