To be able to track where users are using the UserInfoCard, from which pages, we need to enrich current instrumentation stream with context describing what kind the UIC is being opened on.
Page types to recognize: (in case of conflicts, the topmost matching rule should be used)
- log – when viewing Special:Log or when the trigger button is inside .mw-logevent-loglines
- checkuser – when viewing any of the following special pages: CheckUser, Investigate, SuggestedInvestigations
- blocklist – when viewing Special:BlockList
- rc – when viewing Special:RecentChanges
- special – when viewing a special page
- history – when viewing action=history or action=info for any wiki page
- diff – when viewing old version of a page and trigger button is inside mw-revision-info or when viewing difference between two versions and trigger button is inside .diff-title
- page – when viewing page content and trigger button is inside #mw-content-text
- other – when none of the above holds
Acceptance criteria
- open event has a JSON-encoded context, with kind of the page stored under a page key.