Closed Bug 1898275 Opened 1 year ago Closed 1 year ago

New Tab Weather Widget: Add an impression and error event to telemetry

Categories

(Firefox :: New Tab Page, enhancement)

enhancement

Tracking

()

VERIFIED FIXED
128 Branch
Tracking Status
firefox127 + verified
firefox128 --- verified

People

(Reporter: maxx, Assigned: maxx)

References

(Blocks 1 open bug)

Details

(Whiteboard: [hnt] )

Attachments

(2 files)

Add telemetry items for the following events:

  • Impressions
No longer blocks: 1890136
Depends on: 1890136
Assignee: nobody → mcrawford
Summary: New Tab Weather Widget: Add an impression event to telemetry → New Tab Weather Widget: Add an impression and error event to telemetry
Attachment #9403558 - Attachment description: WIP: Bug 1898275 - Add impression and error telemetry events to Weather feature → Bug 1898275 - Add impression and error telemetry events to Weather feature r?#home-newtab-reviewers

[Tracking Requested - why for this release]: This is needed for an experiment in 127.

This is mostly some boiler plate, jsx, some events, and bundled files changing.

This should be the last of our uplifts. fingers crossed

Pushed by sdowne@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e00d9ba1e266 Add impression and error telemetry events to Weather feature r=home-newtab-reviewers,thecount
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Attachment #9403921 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: This is needed for an experiment in 127.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: Set browser.newtabpage.activity-stream.system.showWeather, browser.newtabpage.activity-stream.telemetry, , browser.newtabpage.ping.enabled, and browser.newtabpage.activity-stream.telemetry.ut.events to true. 2. Go to about:glean and setup glean to test newtab pings. 3. Load newtab and see the weather report and close the newtab, should trigger the impression, to see the error event, you need to ensure the internet is turned off before opening newtab and flipping the prefs (no internet triggers and error), but in order to actually send the telemetry report, you need to turn the internet back on wait a bit, then close the tab. Both should fire glean events for "weather_impression" and "weather_load_error"
  • Risk associated with taking this patch: Low
  • Explanation of risk level: This is mostly some boiler plate, jsx, some events, and bundled files changing. Everything is also behind a pref.
  • String changes made/needed: None
  • Is Android affected?: no
Flags: qe-verify+
Attachment #9403921 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9403921 - Flags: approval-mozilla-beta+ → approval-mozilla-beta-
Attachment #9403921 - Flags: approval-mozilla-beta- → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I have verified this enhancement using Firefox Beta 127.0b7 (Build ID: 20240526171419) downloaded from Treeherder and I can confirm that the "weather_load_error" event is sent to Glean when the Weather information is not available and "weather_impression" event is sent to Glean when opening a New Tab and the Weather widget is displayed on the page.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

I have verified this enhancement using Firefox Nightly 128.0a1 (Build ID: 20240607090815) and I can confirm that the "weather_load_error" event is sent to Glean when the Weather information is not available and "weather_impression" event is sent to Glean when opening a New Tab and the Weather widget is displayed on the page.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: