Closed Bug 2050977 Opened 2 months ago Closed 2 months ago

Add telemetry to the Picture of the day widget

Categories

(Firefox :: New Tab Page, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: maxx, Assigned: dgrant, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Should follow standard widget telemetry:

  • Impression
  • Interaction
  • Enabled
  • Context menu items (esp the dismiss current photo)

Custom user events

  • Set current photo as wallpaper
  • Hide current photo
  • (Optional??) Open up WikiMedia page

The widget emits the standard unified widget events (widgets_impression,
widgets_user_event, widgets_enabled) via the shared useWidgetTelemetry hook,
wired alongside each feature: impression, enabled-on-hide, and user events for
set_wallpaper, hide_photo, manage_wallpaper, change_size, show_picture, and
learn_more. widget_name/user_action are free-form on the unified events, so no
metrics.yaml change is needed. This adds jest coverage asserting the enabled and
set_wallpaper events fire with widget_name="picture_of_the_day".

Validation: ./mach lint; newtab jest (PictureOfTheDay). Test-only.

Assignee: nobody → dgrant
Status: NEW → ASSIGNED
Attachment #9603711 - Attachment description: Bug 2050977 - Picture of the Day: add telemetry test coverage. r?#home-newtab-reviewers → Bug 2050977 - Picture of the Day: telemetry test coverage and the interaction pref. r?#home-newtab-reviewers
Pushed by csabou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fa3fdfe69b10 https://hg.mozilla.org/integration/autoland/rev/5ef54869fd53 Revert "Bug 2050977 - Picture of the Day: telemetry test coverage and the interaction pref. r=Dre"

Backed out for causing node failures.

Push with failures

Failure log

Backout link

Flags: needinfo?(dgrant)
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: