Bug 1921220 Comment 6 Edit History

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

Jan-Erik has suggested a way forward for this. In summary:
**Client apps will need to generate and store a new `dau_id` for the lifetime of the app.**

Steps:
- add a new `dau`:`id` metric to `fenix/app/metrics.yaml`
- on first launch of the app when Glean is initialised, call  `Dau.id.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 `Dau.id.set(dauId)`
-- 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: `Dau.id.set('beefbeef-beef-beef-beef-beeefbeefbee')`
Jan-Erik has suggested a way forward for this. In summary:
**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`
- on first launch of the app when Glean is initialised, call  `Dau.id.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 `Dau.id.set(dauId)`
-- 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: `Dau.id.set('beefbeef-beef-beef-beef-beeefbeefbee')`
Jan-Erik has suggested a way forward for this. In summary:
**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  `Dau.id.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 `Dau.id.set(dauId)`
-- 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: `Dau.id.set('beefbeef-beef-beef-beef-beeefbeefbee')`
Jan-Erik has suggested a way forward for this. In summary:
**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  `Dau.id.generateAndSet()` and save the returned usage profile id string in a `Preference`
- on subsequent launches of the app:
-- if upload is enabled, retrieve the usage profile id value from the preference and call `Dau.id.set(dauId)`
-- if upload is disabled, unset the usage profile id

When the daily usage ping switch is toggled:
- ON: generate and set the usage profile id & store in preference
- OFF: unset the usage profile id

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

Back to Bug 1921220 Comment 6