Page MenuHomePhabricator

WikiLambda metrics: Consider tracking views of functions (not just editing steps)
Closed, ResolvedPublic

Description

Description

We currently track views and editing steps of implementations and testers, but for functions we only track editing steps (start editing, cancel, publish). So there’s an asymmetry there versus our tracking of functions.

Motivations:

  • To support evaluation of the updated functions viewer page. One of the metrics we identified was proportion of users that load the functions viewer page and click to edit a function.
  • To support the Audience research work underway in 2023/24 Q3 (Develop a baseline understanding of our users). One of the metrics we will likely want to calculate is conversions rate (time from user visit to first edit on a page). This would include function viewer pages.

Desired behavior/Acceptance criteria

  • Track all views of functions in a way that's consistent with how we track views of implementations and tests. (For example, the tracking should include the ZID of the function that is viewed.)

Completion checklist

Event Timeline

Mcastro lowered the priority of this task from Medium to Low.
Mcastro moved this task from To triage to Backlog on the Abstract Wikipedia team board.

Change 1011010 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/extensions/WikiLambda@master] Track function views (not just edits)

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

Jdforrester-WMF changed the task status from Open to In Progress.Mar 14 2024, 2:58 PM
Jdforrester-WMF assigned this task to DMartin-WMF.
Jdforrester-WMF moved this task from Backlog to To deploy on the Abstract Wikipedia team board.

Change 1011010 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Track function views (not just edits)

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

Over to Megan for final online QA

I reviewed data logged for this new event in wikifunctions_ui and confirmed the data appears as expected. See summary of checks below:

  • Functions views instrumented as name = 'wf.ui.editFunction.load' and (custom_data)['edit'].value = False
  • We start logging these events on 20 March 2024
  • An associated zobjectid is logged for all events.
  • All of these function view events are logged as views to existing functions (isnewzobject = false)
  • There have been 5,652 function views logged to date. 986 views by unregistered users and 4666 views by registered users.
  • Total number of functions views logged appears as expected (Higher than the number of edits to functions)