Page MenuHomePhabricator

Add Growth assigned feature variant to the CommunityUpdates events
Closed, ResolvedPublic

Description

CommunityUpdates currently instrumented through the Metrics Platform client do not include any experiment variant information in their payloads. The goal of the task is to add the variant information to those events. Ideally using the experiments schema already included as a fragment in the core web base schema (1.3.0).

Acceptance criteria

  • Events sent through the Metrics Platform client contain variant information

Event Timeline

Sgs moved this task from Backlog to Estimated tasks backlog on the Growth-Team board.

Change #1072544 had a related patch set uploaded (by Sergio Gimeno; author: Sergio Gimeno):

[mediawiki/extensions/GrowthExperiments@master] CommunityUpdates: add experiment variant info to instrumentation events

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

Change #1072544 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] CommunityUpdates: add experiment variant info to instrumentation events

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

Sgs added a subscriber: Etonkovidova.

Since there's no experiment running in beta wikis the variant field in the events is expected to always have a "control" value. cc @Etonkovidova

Checked - the assigned feature variant ("experiments":{"assigned":{"growth-experiments":"control"},"enrolled":["growth-experiments"]) is present.

{"action":"impression","experiments":{"assigned":{"growth-experiments":"control"},"enrolled":["growth-experiments"]},"action_source":"community-updates","action_context":"women_in_red","$schema":"/analytics/product_metrics/web/base/1.3.0","mediawiki":{"database":"enwiki","site_content_language":"en"},"page":{"content_language":"en"},"agent":{"client_platform":"mediawiki_js","client_platform_family":"desktop_browser"},"performer":{"session_id":"[]","active_browsing_session_token":"[]","name":"ET15","is_bot":false,"is_logged_in":true,"edit_count_bucket":"100-999 edits","groups":["*","user","autoconfirmed"],"registration_dt":"2015-09-15T18:00:02.000Z","is_temp":false,"language":"en","pageview_id":"b7581614d68b3f3677a2"},"sample":{"unit":"pageview","rate":1},"dt":"2024-09-20T20:09:12.514Z","meta":{"stream":"mediawiki.product_metrics.homepage_module_interaction","domain":"en.wikipedia.beta.wmflabs.org","id":"[]","dt":"2024-09-20T20:09:17.434Z","request_id":"[]","topic":"eqiad.mediawiki.product_metrics.homepage_module_interaction","partition":0,"offset":94},"http":{"request_headers":{"user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0"}}}