Page MenuHomePhabricator

Donor badge experiment: Instrument taps on donor badge
Open, HighPublic2 Estimated Story Points

Description

Background

Various events will be logged when users interact with the donor badge. Refer to the instrumentation plan.


Requirements

Technical

  • "Return session" defined as: a page load by the same donor session token, more than 30 minutes after the previous session ended, within the 21-day window.
  • to be clarified badge_tap_return_session(?) fires instead of (or in addition to, confirm with Data Engineering) badge_tap when the tap occurs in a return session.
  • Write unit tests for each event asserting correct payload shape and correct session-type classification.

Acceptance Criteria

  • All events related to interacting with the donor badge are instrumented according to the instrumentation plan. Note that exposure and page_visit events will be instrumented as part of T426780.

Event Timeline

HFan-WMF triaged this task as High priority.May 7 2026, 5:49 PM
HFan-WMF moved this task from Incoming to Needs refinement on the Reader Experience Team board.
Volker_E set the point value for this task to 2.May 12 2026, 9:10 PM
AnneT removed bwang as the assignee of this task.Wed, May 20, 12:44 PM
AnneT added subscribers: bwang, AnneT.

Unassigning @bwang so he can focus on the UI patch for now

AnneT updated the task description. (Show Details)

Change #1294352 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/extensions/WikimediaCustomizations@master] Instrument donor badge click

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

Test wiki created on Patch demo by BWang (WMF) using patch(es) linked to this task:
https://a8fd9bfdc0.catalyst.wmcloud.org/w/

Change #1295043 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/extensions/WikimediaEvents@master] Add donor badge click instrumentation

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

Change #1294352 merged by jenkins-bot:

[mediawiki/extensions/WikimediaCustomizations@master] Add hook events to allow us to instrument donor badge click

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

Change #1295043 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Add donor badge click instrumentation

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

Change #1295506 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/WikimediaEvents@master] Tweak behaviour of exposure and page_visit events

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

Change #1295506 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Donor Delight Badge: Tweak behaviour of exposure and page_visit events

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

bwang removed bwang as the assignee of this task.Wed, Jun 3, 4:53 PM

Change #1297252 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/WikimediaEvents@master] Do not use compat library

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

Change #1297252 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Do not use compat library

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

Please fold this into the QA task you are creating and resolve it when that's done.