Closed Bug 1788960 Opened 2 years ago Closed 2 years ago

Send engagement telemetry event when re-launching Firefox to complete a background task message notification

Categories

(Toolkit Graveyard :: Notifications and Alerts, enhancement)

enhancement

Tracking

(firefox106 fixed)

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: nalexander, Assigned: nalexander)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidedi-notifications])

Attachments

(3 files)

After Bug 1781929, a (Windows) toast notification popped by a background task message will, upon user interaction, relaunch Firefox (optionally navigating to a launch_url). To measure how frequently such a call to action is invoked, we need to send a telemetry event when we process this relaunch. There's a natural point to do this; we just need to funnel an identifier through the relevant APIs and decide the form of the telemetry event.

(In reply to Romain Testard [:RT] from comment #1)

Could we potentially extend https://probes.telemetry.mozilla.org/?search=launch_method&view=detail&probeId=scalar%2Fos.environment.launch_method or https://probes.telemetry.mozilla.org/?search=pdf&view=detail&probeId=scalar%2Fos.environment.launched_to_handle?

We could, but I think a (Glean) event makes the most sense. launched_to_handle would be sensible except that we'd want to indicate something like notification, and then we don't have a sensible place to stuff the tag/campaign id of the notification.

We really only care about the counts of re-engaged users (and pivoting on environment data), so I'll add a new event unless I hear strong direction otherwise.

Though all other desktop data is not on Glean yet so we won't be able to correlate this data with any other telemetry data if we use Glean, right?

(In reply to Romain Testard [:RT] from comment #3)

Though all other desktop data is not on Glean yet so we won't be able to correlate this data with any other telemetry data if we use Glean, right?

I thought the Glean Desktop data was not so separated, but I see that you're right. So I'll either send a regular Firefox Legacy Telemetry event or extend the existing launched_to_handle telemetry to include this, perhaps with a launched_to_handle_extra string that can capture the additional tag/campaign id.

On Windows, when an alert is privileged and name is non-empty, round
trip its name (as privilegedName) through the Windows notification
mechanism, and provide it to the "relaunch" callback.

This allows to connect a backgroundTaskMessage popping a toast
notification with a given name through to a re-engagement with
Firefox.

Depends on D156636

Flags: needinfo?(nalexander)

The following patch is waiting for review from a reviewer who resigned from the review:

ID Title Author Reviewer Status
D156637 Bug 1788960 - Part 2: Telemetry event when completing chrome-privileged Windows native notification with name. r?chutten nalexander chutten: Resigned from review

:nalexander, could you please find another reviewer?

For more information, please visit auto_nag documentation.

Flags: needinfo?(nalexander)
Attached file 1788960-review-1.md
Flags: needinfo?(nalexander)
Attachment #9294289 - Flags: data-review?(chutten)

Comment on attachment 9294289 [details]
1788960-review-1.md

DATA COLLECTION REVIEW RESPONSE:

Is there or will there be documentation that describes the schema for the ultimate data set available publicly, complete and accurate?

Yes.

Is there a control mechanism that allows the user to turn the data collection on and off?

Yes. This collection is Telemetry so can be controlled through Firefox's Preferences.

If the request is for permanent data collection, is there someone who will monitor the data over time?

Yes, rtestard@mozilla.com, and nalexander@mozilla.com are responsible.

Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 2, Interaction.

Is the data collection request for default-on or default-off?

Default on for all channels.

Does the instrumentation include the addition of any new identifiers?

No.

Is the data collection covered by the existing Firefox privacy notice?

Yes.

Does the data collection use a third-party collection tool?

No.


Result: datareview+

Attachment #9294289 - Flags: data-review?(chutten) → data-review+
Pushed by nalexander@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b91f04ec9d73
Part 1: Round trip `name` for privileged alerts through Firefox restart. r=nrishel
https://hg.mozilla.org/integration/autoland/rev/0cf586a90214
Part 2: Telemetry event when completing chrome-privileged Windows native notification with `name`. r=chutten
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: