Page MenuHomePhabricator

Track impressions for article views
Closed, ResolvedPublic3 Estimated Story Points

Description

Background

For upcoming changes to the article view in the App, we want to be able to measure how many impressions of articles happen within our app. We currently have access to pageview data, but we are not able to connect this information with unique users, and measure the impact of our product interventions. To do this, we must track article impressions within the App.

Requirements

  • Count article view impressions within the iOS app according to instrumentation spec

Due date: Ideally before the release of Navigation Phase 2 (mid February)

Eng Notes

For items #1, #2 and #3, reference https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/MEP_dev_process.

  1. Create new schema in gitlab secondary repository. Repo: https://gitlab.wikimedia.org/repos/data-engineering/schemas-event-secondary. Here's an example of what creating the watchlist schema looked like, for reference (ignoring the login_action update files). This repo has since moved to gitlab.
  2. Once patch in step 1 is merged, create a new patch in Gerrit to mediawiki-config repository. Repo: https://gerrit.wikimedia.org/r/admin/repos/operations%2Fmediawiki-config,general. Here's an example of what creating the watchlist config looked like for reference.
  3. Deploy patch #2 via backport window.
  4. Create new funnel swift class in ios repo. Log analytics event in ArticleViewController viewDidAppear (or after an article successfully loads in articleLoadWaitGroup?.notify(queue: DispatchQueue.main) { [weak self] in completion block).

QA Notes

0. Test in lastest 7.7.1 build

  1. Enable "send to wmflabs" toggle in developer settings.
  2. Watch ios.article_link_interaction stream.
  3. Check that navigate action is logged whenever a user lands on an article.

Event Timeline

Tsevener renamed this task from Track impressions for article views to [M] Track impressions for article views.Jan 16 2025, 6:33 PM
Seddon renamed this task from [M] Track impressions for article views to Track impressions for article views.Jan 17 2025, 1:10 AM
Seddon set the point value for this task to 3.
Tsevener updated the task description. (Show Details)

Change #1113996 had a related patch set uploaded (by Tsevener; author: Tsevener):

[operations/mediawiki-config@master] Add ios.article_link_interaction stream to config

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

Going to Block until I can deploy the config change on Monday (no deploys on Friday).

Change #1113996 merged by jenkins-bot:

[operations/mediawiki-config@master] Add ios.article_link_interaction stream to config

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

Mentioned in SAL (#wikimedia-operations) [2025-01-27T14:09:52Z] <zabe@deploy2002> Started scap sync-world: Backport for [[gerrit:1113996|Add ios.article_link_interaction stream to config (T382031)]], [[gerrit:1114378|srwiki: add incubator as importsource (T384069)]], [[gerrit:1114372|enwiki: temporary lift of IP cap for 31 January and 1 February 2025 (T384680)]]

Mentioned in SAL (#wikimedia-operations) [2025-01-27T14:21:39Z] <zabe@deploy2002> tsev, zabe, anzx: Backport for [[gerrit:1113996|Add ios.article_link_interaction stream to config (T382031)]], [[gerrit:1114378|srwiki: add incubator as importsource (T384069)]], [[gerrit:1114372|enwiki: temporary lift of IP cap for 31 January and 1 February 2025 (T384680)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

HNordeenWMF removed Tsevener as the assignee of this task.
HNordeenWMF added a subscriber: Tsevener.