Summary
In this task, we'll build the schema and instrument code needed to understand usage of the feature.
Background
- This task overlaps with T386439: [Epic] UserInfoCard: Rollout and metrics monitoring
- We want to instrument all the interactive components in the feature:
- Clicks/taps to the icon button injected next to usernames
- Clicks on links in the card, with ability to identify these clicks in a semantic way (e.g. to log a link click to en.wikipedia.org/wiki/Special:Contributions, but instead link-id=specialcontributions)
- Enabling/disabling the feature.
User story
As a product owner, I want to understand which components in the user information card are used most often. I also want to understand how often the feature is used, and if the feature is used repeatedly.
Technical notes
- We can use the metrics platform base schema with little or no modifications
- We need to include the user ID in the instrumentation data, so that we can understand repeat usages, and so that we can also map outcomes (e.g. review card -> user is eventually blocked or has edit reverted)
Acceptance criteria
- All interactions with the user information card are instrumented
- Schema for the user reputation card interactions exists