Page MenuHomePhabricator

Add search clicks to sticky header instrumentation
Closed, ResolvedPublic2 Estimated Story Points

Description

Background

During the sticky header instrumentation QA T294639: Schema QA sticky header instrumentation, we noticed that clicks to the search bar are not currently instrumented. We would like to add these to the instrumentation.

Acceptance criteria

  • Add instrumentation that tracks clicks to the search bar within the sticky header

Developer notes

Adding the data-event-name attribute to the element

QA steps

  • On an article page where sticky header is enabled, click on the search icon in sticky header and note the event that gets logged:

Screen Shot 2021-12-07 at 4.18.57 PM.png (1×4 px, 2 MB)

QA Results - Beta

ACStatusDetails
1T296999#7559954

QA Results - Prod

ACStatusDetails
1T296999#7575292

Event Timeline

Change 744894 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/skins/Vector@master] Add data-event-name attribute to sticky search icon.

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

cjming moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
cjming subscribed.

Change 744894 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Add data-event-name attribute to sticky search icon.

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

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: On an article page where sticky header is enabled, click on the search icon in sticky header and note the event that gets logged:

Screen Shot 2021-12-09 at 7.10.23 AM.png (1×874 px, 256 KB)

Edtadros subscribed.

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: On an article page where sticky header is enabled, click on the search icon in sticky header and note the event that gets logged:
Per discussion with @Jdlrobson, the sampling rate for search is very low so the best way to validate is through the db on hue.wikimedia.org. Below is a screenshot as well as the event that is returned from the query.

Screen Shot 2021-12-16 at 6.43.11 AM.png (974×888 px, 164 KB)

{
  "action": "click",
  "skin": "vector",
  "skinversion": 2,
  "name": "ui.vector-sticky-search-form.icon",
  "token": "9156a8b18d8f7a35d3ac",
  "issidebarcollapsed": false,
  "isanon": false,
  "editcountbucket": "100-999 edits"
}