Skip to content

Add instrumentation for User Contribution Mapping

Related to https://gitlab.com/gitlab-data/product-analytics/-/issues/2312

We'd like to visualize metrics for User Contribution Mapping in Tableau dashboard. Therefore, we should be adding internal tracking for the following events:

  • placeholder user created (action leading to pending_reassignemnt)
  • placeholder reassignment proposed (action leading to awaiting_approval)
  • placeholder reassignment approved (action leading to reassignment_in_progress)
  • placeholder reassignment rejected
  • placeholder reassignment failed
  • keep as placeholder user
  • placeholder reassignment completed

From PM: I'd like to be able to see which top-level groups or if possible directly which customers do not perform reassignment - they import, placeholders are created and they are not being reassigned - this info would help me to reach out to them and figure out why they are not using the feature.

Advised from Emma copied from comment:

Because the user ID changes when reassignment is completed, you'll just need to ensure that the previous placeholder user ID is captured in the event payload of the placeholder reassignment completed event. This will allow my team to tie everything together. I would recommend capturing the placeholder user ID in event_label or event_property and making note of which user ID is captured (gitlab_global_user_id or pseudonymized_user_id). Tag in the Analytics Instrumentation team to review for the use case of being able to link all the actions together to one placeholder user even when the user id changes on the completion step - and you can tag me in too.

Edited by Carla Drago