Add web notifications permissions telemetry
Categories
(Firefox :: Site Permissions, task, P2)
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:
- Understand current web notification interactions and user patterns with this consent feature
- 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:
Comment 1•9 days ago
•
|
||
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.
Description
•