The [MobileWebMainMenuClickTracking schema](https://meta.wikimedia.org/wiki/Schema:MobileWebMainMenuClickTracking) does not work on desktop Minerva. It throws a client error.
Change the skin to MinervaNeue (e.g. by adding `useskin=minerva` as a URL parameter) and then use a menu item. The following error would be displayed in the Console of your [web browser's Developer tools](https://www.mediawiki.org/wiki/Help:Locating_broken_scripts#Identify_the_problems):
` [MobileWebMainMenuClickTracking] Value null is the wrong type for property "mobileMode" (string expected)`
This adds noise to the console and for completeness should take into the consideration that Minerva can be used on desktop.
= Acceptance criteria
Please delete based on whether we decide to keep or throw away the schema and move to "triaged but future" for estimation.
[] Update schema version of MobileWebMainMenuClickTracking to revision 18203509
[] Update MobileContext::getMode (resources/mobile.startup/context.js) to return "desktop" if return mw.config.get( 'wgMFMode' ) is undefined
[] Rename mobileMode field to "mode" ([[ https://meta.wikimedia.org/w/index.php?title=Schema%3AMobileWebMainMenuClickTracking&type=revision&diff=18203509&oldid=11568715 | per diff ]])
= Replication steps
* Use a desktop browser with Minerva set via the query string
* Open main menu
*make sure your mediawiki instance is configured with the following in LocalSettings.php:
```
$wgMinervaSchemaMainMenuClickTrackingSampleRate = 1;
```
* Open a menu link in a new tab
Note: Sampling rate is set for 50% on the beta cluster. To replicate the issue there, try opening new tabs until the error presents itself.
Bug looks like this:
{F26446227, size=full}