Page MenuHomePhabricator

[S] SearchPreview Instrumentation - Trigger event when sections are clicked
Closed, ResolvedPublic

Description

As a developer, I would like to record any time the user is clicking on one of the sections.

AC:

  • When a user clicks on one of the sections, trigger an event with action "click-section"
  • When an user clicks on the "+ # sections" trigger an event with action TBD

Note:

Event Timeline

MarkTraceur renamed this task from SearchPreview Instrumentation - Trigger event when sections are clicked to [S] SearchPreview Instrumentation - Trigger event when sections are 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 one of the sections, trigger an event with action "click-section"

Two events are recorded - click-article-section and close-searchpreview:

{"$schema":"/analytics/mediawiki/searchpreview/2.0.0","action":"click-article-section","result_display_position":0,"wiki_id":"enwiki","platform":"desktop","session_id":"1d5a94a8a4aa610d29e7lbzqj5dj","meta":{"stream":"mediawiki.searchpreview","domain":"en.wikipedia.beta.wmflabs.org","id":"2006d7aa-9ef1-4899-a439-39d94d438733","dt":"2022-12-22T23:54:04.237Z","request_id":"ea4091b0-8253-11ed-be74-832ea79fb2f0","topic":"eqiad.mediawiki.searchpreview","partition":0,"offset":1305},"dt":"2022-12-22T23:53:59.360Z","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":"1d5a94a8a4aa610d29e7lbzqj5dj","meta":{"stream":"mediawiki.searchpreview","domain":"en.wikipedia.beta.wmflabs.org","id":"e6a7fbce-80df-44cb-a21a-b007be13a0a4","dt":"2022-12-22T23:54:04.243Z","request_id":"ea4106e0-8253-11ed-be74-832ea79fb2f0","topic":"eqiad.mediawiki.searchpreview","partition":0,"offset":1306},"dt":"2022-12-22T23:53:59.361Z","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 an user clicks on the "+ # sections" trigger an event with action TBD

The following events are recorded - click-article-section and close-searchpreview, just as for the above above action - clicking on an article section.