Page MenuHomePhabricator

Set action_source=user_menu for view_reading_list mobile and bookmarkList collapsed menu click events
Closed, ResolvedPublic1 Estimated Story Points

Description

For view_reading_list event in the reading list A/B experiment, we send article_source 'top_right' (for desktop)

For mobile, it needs to be:

action: click
action_subtype: view_reading_list
action_source: user_menu

Based on mobile instrument spec in Jennifer's spreadsheet linked in T411658.

While working on this, we discovered that view_reading_list click events are not sent when the bookmarkList is collapsed into the user menu. We want to include a fix for that here.

BDD

  • For QA engineer to fill out

Test Steps

Design

N/A

Acceptance criteria

  • user in the reading list treatment group clicks on the "Saved pages" when collapsed into the user menu on Vector 2022, a click event is fired with:
  • or user in the reading list treatment group clicks on the "Saved pages" on Minerva in the top left menu (non-advanced), a click event is fired with:
  • or user in the reading list treatment group clicks on the "Saved pages" on Minerva in the top right user menu (advanced), a click event is fired with:
action: click
action_subtype: view_reading_list
action_source: user_menu
  • user in the reading list treatment group clicks on the "Saved pages" when not collapsed into the user menu on Vector 2022 (e.g. in toolbar at top right of the page), a click event is fired with:
action: click
action_subtype: view_reading_list
action_source: top_right
NOTE: we decided with Jennifer that article_count is not needed for this event.

Event Timeline

LMora-WMF triaged this task as High priority.
LMora-WMF set the point value for this task to 1.

While working on this, I noticed that for desktop instrumentation, when the bookmarkList "Saved pages" is collapsed into the menu, then we do not send the click events. We only send click events when it is not collapsed and shown as an icon on the top right

aude renamed this task from Set action_source=user_menu for view_reading_list mobile click events to Set action_source=user_menu for view_reading_list mobile and bookmarkList collapsed menu click events.Dec 8 2025, 8:05 PM
aude updated the task description. (Show Details)

Change #1216646 had a related patch set uploaded (by Aude; author: Aude):

[mediawiki/extensions/WikimediaEvents@master] Set action_source to user_menu for reading list click events

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

aude removed aude as the assignee of this task.Dec 8 2025, 9:30 PM

Change #1216646 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Set action_source to user_menu for reading list click events

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

Etonkovidova subscribed.

Checked on enwiki wmf.7

  • assign a user mw.xLab.overrideExperimentGroup('we-3-3-4-reading-list-test1-en', 'treatment');
  • mobile -checked both AMC and non-AMC mode
    • clicking on Saved pages option shows:
click {
  "action_subtype": "view_reading_list",
  "action_source": "user_menu"
}
  • Desktop
    • clicking on on Saved pages option shows:
 click {
  "action_subtype": "view_reading_list",
  "action_source": "top_right"
}
Jdrewniak claimed this task.