Closed Bug 2072667 Opened 2 months ago Closed 1 month ago

Add telemetry for pre-continuous-onboarding timestamp backfill

Categories

(Firefox for Android :: Experimentation and Telemetry, task)

All
Android
task
Points:
3

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: towhite, Assigned: towhite)

References

Details

(Whiteboard: [android-activation-trust] [fxdroid])

Attachments

(1 external file)

migratePreContinuousOnboardingUserIfNeeded() (added in bug 2071254) backfills onboardingCompletedTimestamp and the day-N continuous onboarding stage timestamps for users who either completed initial onboarding before continuous onboarding existed, or bypassed onboarding entirely through BaseBrowserFragment.observeTabSource(). The function cannot distinguish between these two cohorts, and the bypass cohort is expected to keep recurring going forward rather than tapering off like the historical one.

Add a Glean event recorded each time this migration backfills a user, with an extra key timestamp_source (install_time vs current_time, reflecting which fallback in getApplicationInstalledTime() was used). This will let us measure how many users are affected and check whether the migration keeps firing at a steady rate over time (expected if the bypass cohort keeps recurring) versus dropping off (expected if it were purely the historical cohort).

See Also: 2071254 →
Assignee: nobody → towhite
Status: NEW → ASSIGNED
Points: --- → 3

Adds completionStateMigrated and completionStateOverwritten Glean events to OnboardingCompletionStateMigration.kt,
recording which condition backfilled a user's onboarding completion state (unset timestamp vs. predating the
continuous onboarding rollout) and whether a specific preference held unexpected genuine progress before being
overwritten. completionStateOverwritten also records which migration path triggered it, since an overwrite of
onboardingCompletedTimestamp is expected under the predates-cutoff path but any overwrite under the unset-timestamp
path means progress exists that shouldn't.

Adds a reconciliationOutcome labeled counter for the two no-op paths (seventh-day stage already complete, or the
initial timestamp postdates the release cutoff), which otherwise have no telemetry of their own. Combined with
completionStateMigrated's migration_reason breakdown, this gives a full denominator for the population
reconcileOnboardingCompletionState() runs over without joining against another ping.

Also adds daySevenCompleted to ContinuousOnboardingFeature.kt, recording whether the day-7 continuous onboarding
stage resolved because the user saw the IP Protection onboarding prompt, because they are permanently ineligible, or
because the prompt is no longer allowed to be shown to them, so the ratio between the outcomes is measurable.

All events record after the underlying state mutation completes rather than before, so a future failure partway
through the mutation cannot produce a telemetry event for a change that did not actually happen.

Adds tests asserting that each metric is recorded on the path it belongs to, with the expected extras, and not on
the others.

Attachment #9646727 - Attachment description: WIP: Bug 2072667 - Part 5: Add telemetry for onboarding completion state backfill and day-7 IP Protection completion. → WIP: Bug 2072667 - Add telemetry for onboarding completion state backfill and day-7 IP Protection completion.
Attachment #9646727 - Attachment description: WIP: Bug 2072667 - Add telemetry for onboarding completion state backfill and day-7 IP Protection completion. → WIP: Bug 2072667 - Add telemetry for the onboarding completion state backfill.
Attachment #9646727 - Attachment description: WIP: Bug 2072667 - Add telemetry for the onboarding completion state backfill. → Bug 2072667 - Add telemetry for the onboarding completion state backfill.
Pushed by icedicedcoffee@proton.me: https://github.com/mozilla-firefox/firefox/commit/f1d5bcb34d3f https://hg.mozilla.org/integration/autoland/rev/36355b72b7b7 Add telemetry for the onboarding completion state backfill. r=android-reviewers,marcin
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: