Open Bug 1998053 Opened 17 days ago Updated 9 days ago

Add web notifications permissions telemetry

Categories

(Firefox :: Site Permissions, task, P2)

Firefox 144
task

Tracking

()

People

(Reporter: asavransky, Unassigned)

Details

We lack telemetry on web notifications, specifically when users:

  • Are asked if they want to grant a site permission to send web notifications
  • Accept/block site web notification requests
  • Remove web notification permissions either via toolbar or preferences

See here for detailed spec with screenshots of each of the scenarios noted above.

We'd like to add this telemetry in order to:

  1. Understand current web notification interactions and user patterns with this consent feature
  2. Assess whether there are opportunities to drive user engagement by improving the web notifications experience

This documents describe the problem space, adding some helpful context:

This needs to be implemented in different components:

Are asked if they want to grant a site permission to send web notifications

=> PermissionUI.sys.mjs. Could maybe also infer this based on the permission state on the platform side.

Accept/block site web notification requests

=> Most likely via PermissionUI.sys.mjs because we want to look at user interactions, possibly including the "remember" option.

Remove web notification permissions either via toolbar or preferences

=> We could keep track of this by registering a permission observer, then we don't need to introduce telemetry into every permission surface. However, if we want to know which surface was used to manage the permission, we will need UI specific code.

Receive a web notification

=> DOM Notification or service worker code

Interact with a web notification

=> Unsure, probably also DOM or OS integration code.

Severity: -- → N/A
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.