Page MenuHomePhabricator

Update Surfacing Add a Link instrumentation and tracking to desktop and statslib
Closed, ResolvedPublic

Description

Since the alpha experiment for Surfacing Add a Link, we've decided to also enable it on desktop.
Further, with T355837 done, we now can also track from the browser performance metrics to statslib, so we should do that and also make those aware of the mobile/desktop distinction.

Acceptance Criteria:

  • the instrumentation correctly includes the information of whether the user is on mobile or desktop
  • tracking the performance metrics are also tracked with statslib and these also include information about the platform

Event Timeline

Change #1119737 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@master] fix(Surfacing): make instrumentation platform-aware

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

Change #1119738 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@master] feat(Surfacing): track performance metrics with statslib

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

Change #1119737 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] fix(Surfacing): make instrumentation platform-aware

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

Change #1119738 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] feat(Surfacing): track performance metrics with statslib

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

Change #1120618 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@wmf/1.44.0-wmf.17] fix(Surfacing): make instrumentation platform-aware

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

Change #1120620 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@wmf/1.44.0-wmf.17] feat(Surfacing): track performance metrics with statslib

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

Change #1120618 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.44.0-wmf.17] fix(Surfacing): make instrumentation platform-aware

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

Change #1120620 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.44.0-wmf.17] feat(Surfacing): track performance metrics with statslib

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

Mentioned in SAL (#wikimedia-operations) [2025-02-19T14:58:19Z] <lucaswerkmeister-wmde@deploy2002> Started scap sync-world: Backport for [[gerrit:1120904|Growth: increase minimum tasks per topic on idwiki; ruwiki => default (T385343)]], [[gerrit:1120618|fix(Surfacing): make instrumentation platform-aware (T386490)]], [[gerrit:1120620|feat(Surfacing): track performance metrics with statslib (T386490)]], [[gerrit:1120643|fix(surfacing): add dependency for link-icon in popup header]]

Mentioned in SAL (#wikimedia-operations) [2025-02-19T15:01:18Z] <lucaswerkmeister-wmde@deploy2002> lucaswerkmeister-wmde, migr: Backport for [[gerrit:1120904|Growth: increase minimum tasks per topic on idwiki; ruwiki => default (T385343)]], [[gerrit:1120618|fix(Surfacing): make instrumentation platform-aware (T386490)]], [[gerrit:1120620|feat(Surfacing): track performance metrics with statslib (T386490)]], [[gerrit:1120643|fix(surfacing): add dependency for link-icon in popup heade

Mentioned in SAL (#wikimedia-operations) [2025-02-19T15:10:34Z] <lucaswerkmeister-wmde@deploy2002> Finished scap sync-world: Backport for [[gerrit:1120904|Growth: increase minimum tasks per topic on idwiki; ruwiki => default (T385343)]], [[gerrit:1120618|fix(Surfacing): make instrumentation platform-aware (T386490)]], [[gerrit:1120620|feat(Surfacing): track performance metrics with statslib (T386490)]], [[gerrit:1120643|fix(surfacing): add dependency for link-icon in popup header]]

All the changes have been deployed, and there should now be a small number of events visible: on testwiki both from desktop and mobile.

I do not know how to check the instrumentation.

But the data for the performance metrics can now be seen on: https://grafana.wikimedia.org/d/d78efd40-141e-492e-b7cd-9c9482744034/growth-surfacing-structured-tasks?var-wiki=testwiki&var-platform=desktop%7Cmobile&from=now-2d&to=now

KStoller-WMF subscribed.

Thank you for thinking of this!

Etonkovidova subscribed.

Checked on testwiki wmf.18 with new mw.Api().saveOption('eventlogging-display-console', 1) as per https://www.mediawiki.org/wiki/Extension:EventLogging/Programming#Monitoring_events

The events differentiate between mobile and desktop:

desktop event
$schema:  "/analytics/mediawiki/structured_task/article/link_suggestion_interaction/1.8.0"
action: "impression"
action_data: ""
active_interface: "readmode_article_page"
dt: "2025-02-27T01:10:24.028Z"
is_mobile: false

meta: 
domain: "test.wikipedia.org"
stream: "mediawiki.structured_task.article.link_suggestion_interaction"
page_id: 101423
page_title: "Apples"
mobile event
$schema: "/analytics/mediawiki/structured_task/article/link_suggestion_interaction/1.8.0"
action: "impression"
action_data: ""
active_interface: "readmode_article_page"
dt: "2025-02-27T01:17:08.612Z"
homepage_pageview_token: "85845dfb-95b3-4e75-bb9d-738687a715c2"
is_mobile: true

meta: 
domain: "test.wikipedia.org"
stream:"mediawiki.structured_task.article.link_suggestion_interaction"
page_title: "Neon"
Aklapper renamed this task from Update Surfacing Add a Link intrumentation and tracking to desktop and statslib to Update Surfacing Add a Link instrumentation and tracking to desktop and statslib.Feb 27 2025, 10:40 AM