Page MenuHomePhabricator

Log when the user clicks the popup
Closed, ResolvedPublic2 Estimated Story Points

Description

Background

Following on from T296415: Basic ipinfo instrument setup and first events, we'd like to know when the user clicks a popup and the overall click rate.

This task is distinct from the task above as it's blocked on T293723: Clicking the popup should take you to Special:Contributions/$ip.

AC
  • When I click on the popup, an event should be logged
    • The event_action property should be "open_infobox"
    • The event_context property should be "popup"
    • The event_source property should be the action/page that I'm on, i.e. one of "action_history", "special_log", "special_recentchanges"
Notes
  1. See the current.yaml files in the subdirectories in https://gerrit.wikimedia.org/r/plugins/gitiles/schemas/event/secondary/+/refs/heads/master/jsonschema/analytics/mediawiki for numerous examples of JSON Schema schemas that are used in production
  2. wt:Event Platform/Instrumentation How To is a step-by-step guide to creating a creating a schema and validating an event with it
  3. https://www.mediawiki.org/wiki/MediaWiki-Docker/Configuration_recipes/EventLogging is a step-by-step guide to setting up your local development environment

Event Timeline

ARamirez_WMF renamed this task from Log when the user clicks the popup to Log when the user clicks the popup [S].Nov 30 2021, 5:38 PM
ARamirez_WMF renamed this task from Log when the user clicks the popup [S] to Log when the user clicks the popup .Feb 15 2022, 6:49 PM
ARamirez_WMF set the point value for this task to 2.

Change 773742 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/IPInfo@master] Log when user clicks on popup

https://gerrit.wikimedia.org/r/773742

Change 773742 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Log when user clicks on popup

https://gerrit.wikimedia.org/r/773742

@STran which page will I see the "open_infobox" event actions? Is it in the IP info logs page?
I don't have admin privilege to test on beta now. However I wanted to confirm specifically where I would see the "open_infobox" event actions. This feature is not on test.wiki yet per my test.
Below is what I see on Beta different event action name:

Screen Shot 2022-03-29 at 10.11.07 PM.png (1×1 px, 510 KB)

@STran @Tchanders
By the way I did slow throttling network, I still did not see the "open_infobox" event action, when I liked on IP info popup box.

@imaigwilo Thanks for trying. I'm happy to move this on, on the basis that the local tests were working. The request probably isn't being picked up by the browser in time, since we're navigating to a new page.