Allow extra parameter for Snowplow events
What does this MR do?
Related to #323663 (closed)
Backend equivalent: !57504 (merged)
We're able to provide an extra
key-value pair object to the gitlab_standard
context. This MR allows passing this property alongside the event data.
This MR also moves the tracking.js
file to its own folder. So we can implement all the improvements outlined in #323663 (closed) (like reducing the file complexity).
-
Move tracking.js
file totracking/index.js
and update tests. -
Add support for extra
property on thedata
argument for raw JS Snowplow events (Tracking.event(category, action, data = {})
), and the Snowplow Vue Mixin (this.track(action, data = {}
). -
Allow passing extra
data as a data-attribute (data-track-extra='{ "valid_json": true }'
) -
Update docs
Does this MR meet the acceptance criteria?
Conformity
-
📋 Does this MR need a changelog?-
I have included a changelog entry. -
I have not included a changelog entry because _____.
-
-
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
Edited by Axel García