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.
- 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.
- 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.
- Deploy patch #2 via backport window.
- 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
- Enable "send to wmflabs" toggle in developer settings.
- Watch ios.article_link_interaction stream.
- Check that navigate action is logged whenever a user lands on an article.