As a developer, I would like to record any time the user is closing a SearchPreview
AC:
- When a user clicks the "x" to close the popup, trigger an event with action "close-searchpreview"
- When a user clicks away and the clickview closes, trigger the same action
- When an user clicks on another result (on desktop) and the popup closes, trigger the same action
- When an user clicks on the same search result and the clickview closes, Trigger the same action
- When a user leaves the page (while quickview was still open), trigger the same action
Note:
- Ticket with document and details on instrumentation definition: https://phabricator.wikimedia.org/T307572