Page MenuHomePhabricator

Account Creation CTA experiment: track clicks for control group
Closed, ResolvedPublic3 Estimated Story Points

Description

Background

We want to track clicks for the control group, who will see the watchstar button, so we can compare them to the treatment group's activity.

Design requirements

Figma file


Requirements

Technical requirements

Acceptance criteria

  • Send a click action when a user in the control group taps the watchstar button
  • Send an init action when the login/create account popup displays
  • Send a click action when a user clicks the login button
  • Send a click action when a user clicks the create account button
  • If at all possible, avoid writing code in MobileFrontend

BDD

Feature: Click tracking for the control group (watchstar CTA)

  Scenario: Open the watchstar drawer
    Given I am a logged-out user on mobile web (Minerva) in the control group
    When I tap the watchstar icon
    Then a click event with action_subtype=save_article_to_watchlist is sent
    And an init event with action_subtype=init_sign_up is sent when the drawer displays

  Scenario: Click "Sign up"
    Given the drawer is shown
    When I tap "Sign up"
    Then a click event with action_context=sign_up is sent
    And the Create account page opens

  Scenario: Click "Log in"
    Given the drawer is shown
    When I tap "Log in"
    Then a click event with action_context=login is sent
    And the Log in page opens

Test Steps

Test Case 1: Watchstar tap + drawer

  1. Open an article logged out, mobile/Minerva, bucketed into control; open the Network tab.
  2. Tap the watchstar icon.
  3. AC1: A click event is sent with action_subtype=save_article_to_watchlist.
  4. AC2: An init event is sent with action_subtype=init_sign_up when the drawer displays.

Test Case 2: Sign up

  1. In the drawer, tap "Sign up".
  2. AC3: A click event is sent with action_context=sign_up, and the Create account page opens.

Test Case 3: Log in

  1. Re-open the drawer and tap "Log in".
  2. AC4: A click event is sent with action_context=login, and the Log in page opens.

QA Results - Beta

ACStatusDetails for test run [ T422175#11982596 ]
1console (beta, mpo:control) — click/save_article_to_watchlist — see T422175_beta_AC1_1.png
2console (beta, mpo:control) — init/init_sign_up — see T422175_beta_AC1_1.png
3console click/sign_up → Create account — see T422175_beta_AC3_1.png; prod T424561 (77 events)
4prod delivery T424561 (control click login = 276 events); "Log in" present in drawer (AC1 shot)

Communication criteria

n/a

Rollback plan

We could turn off the experiment in Test Kitchen if needed.

This task was created by Version 1.0.0 of the Reader Experience team task template using phabulous.

Event Timeline

HFan-WMF triaged this task as High priority.Apr 7 2026, 4:57 PM
HFan-WMF moved this task from Incoming to Needs refinement on the Reader Experience Team board.
Jdlrobson-WMF set the point value for this task to 3.Apr 7 2026, 5:00 PM
SToyofuku-WMF subscribed.

Taking this from Anne so she can cover for Katie ♻️

Change #1280468 had a related patch set uploaded (by Stoyofuku-wmf; author: Stoyofuku-wmf):

[mediawiki/extensions/WikimediaEvents@master] Reading List Account Create: Add click tracking for control group

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

Change #1280473 had a related patch set uploaded (by Stoyofuku-wmf; author: Stoyofuku-wmf):

[mediawiki/skins/MinervaNeue@master] Add watchstar CTA drawer open hook

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

SToyofuku-WMF added a subscriber: jwang.

DMed @jwang to make sure I understood the instrumentation spec correct, but assuming I did so moving to code review - if something needs to be corrected, it can be addressed in a followup so this is ready!

Change #1280473 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Add watchstar CTA drawer open hook

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

Change #1280468 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Reading List Account Create: Add click tracking for control group

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

Test Result - Beta

Status: ✅ PASS
Environment: beta (mpo:control — event construction) + production via Data QA T424561 (delivery)
OS: macOS Tahoe 26.x
Browser: Chrome Canary (latest as of test date)
Device: MS
Emulated Device: iPhone 17 Pro Max

Note: with the mpo override the Test Kitchen framework constructs the event but intentionally suppresses sending ("...will not be sent"), so beta confirms CONSTRUCTION; DELIVERY is confirmed in production via T424561.

Test Case 1: Watchstar tap + drawer

  1. Open an article logged out, mobile/Minerva, mpo:control.
  2. Tap the watchstar icon; observe console.
  3. ✅ AC1: click event constructed with action_subtype=save_article_to_watchlist (console-verified on beta).
  4. ✅ AC2: init event constructed with action_subtype=init_sign_up when the drawer displays (console-verified on beta).

Test Case 2: Sign up

  1. In the drawer, tap "Sign up".
  2. ✅ AC3: click event with action_context=sign_up; delivery confirmed in production — T424561 shows control "click sign up" = 77 events (63 unique users) as of 2026-05-29.

Test Case 3: Log in

  1. Re-open the drawer and tap "Log in".
  2. ✅ AC4: click event with action_context=login; delivery confirmed in production — T424561 shows control "click login" = 276 events (212 unique users).

T422175_beta_AC1_1.png (1,688×1,120 px, 342 KB)

T422175_beta_AC3_1.png (1,688×1,120 px, 392 KB)