Bug 1923902 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

For the additional DAU ping we will want a separate settings toggle that controls whether it is uploaded.

When we add this, we must make sure that for any users that have already disabled telemetry, the new ping is also disabled.

Content design for this work has not been finalized so this is not actionable as yet.
For the additional DAU ping we will want a separate settings toggle that controls whether it is uploaded.

When we add this, we must make sure that for any users that have already disabled telemetry, the new ping is also disabled.

Content design for this work has not been finalized so this part is not actionable as yet.

Client apps will need to generate and store a new dau_id for the lifetime of the app.

Steps:

- add a new usage:profile_id metric to fenix/app/metrics.yaml ("the dau id")
- on first launch of the app when Glean is initialised, call `Usage.profileId.generateAndSet()` and save the returned dau id string in a Preference
- on subsequent launches of the app:
  -- if upload is enabled, retrieve the DAU id value from the preference and call `Usage.profileId.set(id)`
  -- if upload is disabled, unset the DAU id

When the DAU checkbox is toggled:

- ON: generate and set the dau id & store in preference
- OFF: unset the dau id

NB unsetting the dau id is achieved by setting the UUID to a canary value: `Usage.profileId.set('beefbeef-beef-beef-beef-beeefbeefbee')`

Back to Bug 1923902 Comment 0