Page MenuHomePhabricator

[S] SearchPreview instrumentation - Record user Image click
Closed, ResolvedPublic

Description

As a developer, I would like to record any time the user is clicking on the main image of the search Vue.

AC:

  • When a user clicks on the main image shown in the searchView, trigger an event with the action "click-image"

Note:

Event Timeline

@cchen Do we also want to capture when users click on the placeholder (while the image is still being transferred)? I suspect not?

MarkTraceur renamed this task from SearchPreview instrumentation - Record user Image click to [S] SearchPreview instrumentation - Record user Image click.Oct 19 2022, 5:58 PM

@cchen Do we also want to capture when users click on the placeholder (while the image is still being transferred)? I suspect not?

No, we don't need to capture the clicks on the placeholder.

Change 856940 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/SearchVue@master] SearchPreview instrumentation - Record user Image click

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

Change 856940 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@master] SearchPreview instrumentation - Record user Image click

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

Etonkovidova subscribed.
  • When a user clicks on the main image shown in the searchView, trigger an event with the action "click-image"

Clicking on on the main image shown in the searchViewwill trigger two events: click-image and close-searchpreview.

{"$schema":"/analytics/mediawiki/searchpreview/2.0.0","action":"click-image","result_display_position":0,"wiki_id":"enwiki","platform":"desktop","session_id":"d05c8586a50ff3fadf88lbzrys11","meta":{"stream":"mediawiki.searchpreview","domain":"en.wikipedia.beta.wmflabs.org","id":"2d20c1d1-8fcf-4978-b194-b9ae872862ad","dt":"2022-12-23T00:29:19.443Z","request_id":"d7038b20-8258-11ed-be74-832ea79fb2f0","topic":"eqiad.mediawiki.searchpreview","partition":0,"offset":1324},"dt":"2022-12-23T00:29:14.967Z","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":"open-searchpreview","result_display_position":0,"wiki_id":"enwiki","platform":"desktop","session_id":"d05c8586a50ff3fadf88lbzrys11","meta":{"stream":"mediawiki.searchpreview","domain":"en.wikipedia.beta.wmflabs.org","id":"05332b6e-8a1c-4dd4-aae1-77e579629411","dt":"2022-12-23T00:29:19.453Z","request_id":"d704eab0-8258-11ed-be74-832ea79fb2f0","topic":"eqiad.mediawiki.searchpreview","partition":0,"offset":1325},"dt":"2022-12-23T00:29:00.191Z","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"}}}