Page MenuHomePhabricator

Instrument clicks on TOC in reader view desktop
Closed, ResolvedPublic

Description

Context

We want to track a baseline of footnote clicks on the wikis where the A/B test should run. See Parent ticket

Acceptance Criteria

We want to track

  • source wiki
  • timestamp
  • logged-in status ( anon / not anon )
  • edit count buckets

These are all part of the default web schema. So no need for a custom schema here
They can be configured in the test setup UI in the Contextual Attributes

Implementation

  • Track clicks on the References section in the TOC of the article
  • The link that we need to apply the tracking to could be identified by looking at the DOM to figure out the references list tag
  • In case there are multiple references lists we should use the last one
  • Use the headline of that references list to figure out the TOC link
  • Use the TestKitchen to create a simple instrument see epic for which wikis are affected
  • Make sure we get the datapoints above

Event Timeline

Lina_Farid_WMDE renamed this task from Instrument to Instrument clicks on TOC in reader view desktop.Jan 29 2026, 4:27 PM
Lina_Farid_WMDE updated the task description. (Show Details)

Change #1238387 had a related patch set uploaded (by Svantje Lilienthal; author: Svantje Lilienthal):

[mediawiki/extensions/Cite@master] Instrument clicks on TOC in reader view desktop

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

Change #1239873 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Svantje Lilienthal):

[mediawiki/extensions/Cite@wmf/1.46.0-wmf.16] Add instrument for clicks in TOC references link

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

Change #1238387 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Add instrument for clicks in TOC references link

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

Change #1239873 merged by jenkins-bot:

[mediawiki/extensions/Cite@wmf/1.46.0-wmf.16] Add instrument for clicks in TOC references link

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

Mentioned in SAL (#wikimedia-operations) [2026-02-18T21:27:09Z] <kemayo@deploy2002> Started scap sync-world: Backport for [[gerrit:1240361|BaseEditCheck: fix check for blockquote (T417801)]], [[gerrit:1239873|Add instrument for clicks in TOC references link (T415910)]], [[gerrit:1239877|Add instrument for clicks in footnotes in the article (T415909)]]

Mentioned in SAL (#wikimedia-operations) [2026-02-18T21:29:21Z] <kemayo@deploy2002> kemayo, thiemowmde: Backport for [[gerrit:1240361|BaseEditCheck: fix check for blockquote (T417801)]], [[gerrit:1239873|Add instrument for clicks in TOC references link (T415910)]], [[gerrit:1239877|Add instrument for clicks in footnotes in the article (T415909)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-02-18T21:35:05Z] <kemayo@deploy2002> Finished scap sync-world: Backport for [[gerrit:1240361|BaseEditCheck: fix check for blockquote (T417801)]], [[gerrit:1239873|Add instrument for clicks in TOC references link (T415910)]], [[gerrit:1239877|Add instrument for clicks in footnotes in the article (T415909)]] (duration: 07m 56s)

Tobi_WMDE_SW claimed this task.