Skip to content

Track clicks on "uninstall" button for kubernetes implementation

Problem to solve

To better understand user activity, we should track uninstall activity on the kubernetes integration page

Intended users

product managers

Further details

GitLab tracks events using Snowplow's trackStructEvent function. You can read more about it in the Snowplow documentation.

snowplow_name_here('trackStructEvent', 'category', 'action', 'label', 'property', 'value');

See https://gitlab.com/gitlab-org/gitlab-ee/issues/7424 for context on how to track events. You can see our existing Snowplow header implementation in _snowplow.html.haml in app/views/layouts.

Proposal

Record an event when Uninstall button is clicked for each of the applications

  • Uninstall Helm: ('trackStructEvent','k8s_cluster','uninstall','helm','','')
  • Uninstall Cert-Manager: ('trackStructEvent','k8s_cluster','uninstall','cert_manager','','')
  • Uninstall Prometheus: ('trackStructEvent','k8s_cluster','uninstall','prometheus','','')
  • Uninstall Runner: ('trackStructEvent','k8s_cluster','uninstall','runner','','')
  • Uninstall JupyterHub: ('trackStructEvent','k8s_cluster','uninstall','jupyterhub','','')
  • Uninstall Knative: ('trackStructEvent','k8s_cluster','uninstall','knative','','')

Permissions and Security

Documentation

What does success look like, and how can we measure that?

Links / references