Page MenuHomePhabricator

[S] SearchPreview Instrumentation - Trigger an event when commons section is clicked
Closed, ResolvedPublic

Description

As a developer, I would like to record any time the user is interacting with the interwiki section of the SearchPreview

AC:

  • When a user clicks on the commons image, trigger an event with action "click-interwiki-commons"
  • When a user clicks on the "view more" button in the common section trigger an event with action "click-interwiki-commons"

Note:

Event Timeline

MarkTraceur renamed this task from SearchPreview Instrumentation - Trigger an event when commons section is clicked to [S] SearchPreview Instrumentation - Trigger an event when commons section is clicked.Oct 19 2022, 5:57 PM

Change 852945 had a related patch set uploaded (by Vadim Kovalenko; author: Vadim Kovalenko):

[mediawiki/extensions/SearchVue@master] SearchPreview Instrumentation - Trigger event when sections are clicked

https://gerrit.wikimedia.org/r/852945

Etonkovidova updated the task description. (Show Details)
Etonkovidova subscribed.

Checked on https://stream-beta.wmflabs.org/v2/ui/#/?streams=mediawiki.searchpreview

  • When a user clicks on the commons image, trigger an event with action "click-interwiki-commons"

Clicking on the commons image in the commons widget will trigger two events: click-interwiki-commons and close-searchpreview.

{"$schema":"/analytics/mediawiki/searchpreview/2.0.0","action":"click-interwiki-commons","result_display_position":0,"wiki_id":"enwiki","platform":"desktop","session_id":"019f4e2083ea4fc8658dlbzr5ws1","meta":{"stream":"mediawiki.searchpreview","domain":"en.wikipedia.beta.wmflabs.org","id":"cd30a552-10ad-4481-b29c-1bac5e2cad35","dt":"2022-12-23T00:14:32.884Z","request_id":"c6953920-8256-11ed-be74-832ea79fb2f0","topic":"eqiad.mediawiki.searchpreview","partition":0,"offset":1317},"dt":"2022-12-23T00:14:30.736Z","http":{"request_headers":{"user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"}}}
{"$schema":"/analytics/mediawiki/searchpreview/2.0.0","action":"close-searchpreview","result_display_position":0,"wiki_id":"enwiki","platform":"desktop","session_id":"019f4e2083ea4fc8658dlbzr5ws1","meta":{"stream":"mediawiki.searchpreview","domain":"en.wikipedia.beta.wmflabs.org","id":"b41db6e4-4be1-4171-b315-11d614239a79","dt":"2022-12-23T00:14:32.884Z","request_id":"c6956030-8256-11ed-be74-832ea79fb2f0","topic":"eqiad.mediawiki.searchpreview","partition":0,"offset":1318},"dt":"2022-12-23T00:14:30.737Z","http":{"request_headers":{"user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"}}}
  • When a user clicks on the "view more" button in the common section trigger an event with action "click-interwiki-commons"

The same two events are recorded when clicking on "View more" - click-interwiki-commons and close-searchpreview.