1<!--
2* Use this issue template for creating requests to track snowplow events
3* Snowplow events can be both Frontend (javascript) or Backend (Ruby)
4* Snowplow is currently not used for self-hosted instances of GitLab - Self-hosted still rely on usage ping for product analytics - Snowplow is used for GitLab SaaS
5* You do not need to create an issue to track generic front-end events, such as All page views, sessions, link clicks, some button clicks, etc.
6* What you should capture are specific events with defined business logic. For example, when a user creates an incident by escalating an existing alert, or when a user creates and pushes up a new Node package to the NPM registry.
7* For more details read https://about.gitlab.com/handbook/business-technology/data-team/programs/data-for-product-managers/
8 -->
9
10<!--
11We generally recommend events be tracked using a [structured event](https://docs.snowplowanalytics.com/docs/understanding-tracking-design/out-of-the-box-vs-custom-events-and-entities/#structured-events) which has 5 properties you can use. There may be instances where structured events are not sufficient. You may want to track an event where the property changes frequently or is general something very unique. In those cases, use a [self-describing event](https://docs.snowplowanalytics.com/docs/understanding-tracking-design/out-of-the-box-vs-custom-events-and-entities/#self-describing-events)
12
13-->
14
15## Structured Snowplow events to track
16
17* Category: The page or backend area of the application. Unless infeasible, please use the Rails page attribute by default in the frontend, and namespace + classname on the backend. If you're not sure what it is, work with your engineering manager to figure it out.
18* Action: A string that is used to define the user action. The first word should always describe the action or aspect: clicks should be `click`, activations should be `activate`, creations should be `create`, etc. Use underscores to describe what was acted on; for example, activating a form field would be `activate_form_input`. An interface action like clicking on a dropdown would be `click_dropdown`, while a behavior like creating a project record from the backend would be `create_project`
19* Label: Optional. The specific element, or object that's being acted on. This is either the label of the element (e.g. a tab labeled 'Create from template' may be `create_from_template`) or a unique identifier if no text is available (e.g. closing the Groups dropdown in the top navbar might be `groups_dropdown_close`), or it could be the name or title attribute of a record being created.
20* Property: Optional. Any additional property of the element, or object being acted on.
21* Value: Optional, numeric. Describes a numeric value (decimal) directly related to the event. This could be the value of an input (e.g. `10` when clicking `internal` visibility)
22
23| Category | Action | Label | Property | Feature Issue | Additional Information |
24| ------ | ------ | ------ | ------ | ------ | ------ |
25| cell | cell | cell | cell | cell | cell |
26| cell | cell | cell | cell | cell | cell |
27
28<!--
29  Snowplow event tracking starts with instrumentation and completed after a chart is created in Sisense.
30
31  Use this checklist to ensure all steps are completed
32-->
33
34## Snowplow event tracking checklist
35* [ ] Engineering complete work and deploy changes to GitLab SaaS
36* [ ] Verify the new Snowplow events are listed in the [Snowplow Event Exploration](https://app.periscopedata.com/app/gitlab/539181/Snowplow-Event-Exploration---last-30-days) dashboard
37* [ ] Create chart(s) to track your event(s) in the relevant dashboard
38  * [ ] Use the [Chart Snowplow Actions](https://app.periscopedata.com/app/gitlab/snippet/Chart-Snowplow-Actions/5546da87ae2c4a3fbc98415c88b3eedd/edit) SQL snippet to quickly visualize usage. See [example](https://app.periscopedata.com/app/gitlab/737489/Health-Group-Dashboard?widget=9797112&udv=0)
39
40<!-- Label reminders - you should have one of each of the following labels.
41Use the following resources to find the appropriate labels:
42- https://gitlab.com/gitlab-org/gitlab/-/labels
43- https://about.gitlab.com/handbook/product/categories/features/
44-->
45/label ~devops:: ~group: ~Category:
46/label ~"snowplow tracking events"
47