Once the main vue MediaSearch patch (T251940) and the QuickView patch have been merged (T256158) we need to instrument the results so that we can measure users' behaviour
Things we want to measure:
- when a user clicks to go to QuickView
- when a user clicks through from QuickView to a detailed view of an image (audio and video will be handled in T263154)
- search session length
- number of searches in a search session
- total number of search sessions
We may need to create our own schema for what we're measuring - consult with @nettrom_WMF about this
Update: Here is the schema: Media Search measurement specification
Also will probably need to consult with the Analytics Engineering team
Note: currently SearchSatisfaction is being measured, which afaik is a combination of click-through rate from a search and dwell time. Whoever does this will need to figure out if we automatically get this for MediaSearch, and if it is see if we can remove dwell time for commons because it's probably not relevant for images. If we don't get it automatically perhaps we can still adapt the existing SearchSatisfaction code for our purposes