GitLab Version - Follow event naming best practices for analytics
What / Why
After chatting with @dstull about the tracking events implementing as part of #369442 (closed) it was noticed they aren't following our best practices defined here: https://docs.gitlab.com/ee/development/snowplow/#structured-event-taxonomy
The following events should be refactored to better align with these practices:
Proposal
The events should be refactored as follows
rendered_vesion_badge
this.track('render', {
label: 'version_badge',
property: this.title
});
click_version_badge
this.track('click_link', {
label: 'version_badge',
property: this.title
});
click_version_help_dropdown
data: {
testid: 'gitlab-version-container',
track_action: 'click_link',
track_label: 'version_help_dropdown',
track_property: "#{Gitlab.version_info.major}.#{Gitlab.version_info.minor}"
}