wgMinervaSchemaMainMenuClickTrackingSampleRate is currently set by default in Minerva as 0.5. It should be set as 0
Acceptance criteria
- Write a patch for mediawiki-config to set in production to 0.5 and ask somebody to deploy that patch using the deployment calendar. During deployment you'll get a great experience of how we deploy config changes in Wikipedia. You will verify your change was successful by using X-Wikimedia-Debug. You'll want to check that for 50% of page views, clicking a link in the mobile main menu sends an event (see testing instructions)
- ☝️ @phuedx: Done in T205008#4776348. I've also tested the behaviour of the instrumentation in production 👍
- When patch is merged write a patch for MobileFrontend to set the default to 0 and cleanup the related code (mw.config.get('wgMinervaSchemaMainMenuClickTrackingSampleRate',0.5) becomes mw.config.get('wgMinervaSchemaMainMenuClickTrackingSampleRate')
- ☝️ Done in T205008#4777333.
Testing steps
- Open a new tab with mobile site
- Open main menu
- Open one of the many menu links in a new tab
- Verify a beacon event shows in the developer console approx 50% of the time (see screenshot)