Group Level Wiki: BE Add container type to Snowplow tracking metadata
Summary
The Snowplow tracking introduced in !35784 (merged) will be used in both project and group wikis, but we can't tell the events apart from each other.
Improvements
Include the container type in a new field wiki-container-type
with a value of either Project
or Group
.
Involved components
- Add the field in
WikiHelper#wiki_page_tracking_context
- Extend the Iglu schema at https://gitlab.com/gitlab-org/iglu/-/blob/master/public/schemas/com.gitlab/wiki_page_context/jsonschema/1-0-0
- Do this in a new version
1-0-1
for backwards-compatibility. - Bump the version in app/assets/javascripts/pages/shared/wikis/wikis.js
- Do this in a new version
- Update our docs in https://docs.google.com/spreadsheets/d/1WKn5rhcov6BVbTvfbuRqyE9Xnxdz0xUeRzT32IW1Tww/edit
Edited by Markus Koller