Skip to content

feat(analytics): send PostHog event for analytics opt-in choice#296

Merged
theFong merged 1 commit intomainfrom
chore/record-opt-in-metric
Feb 26, 2026
Merged

feat(analytics): send PostHog event for analytics opt-in choice#296
theFong merged 1 commit intomainfrom
chore/record-opt-in-metric

Conversation

@theFong
Copy link
Member

@theFong theFong commented Feb 26, 2026

Summary

  • Sends an analytics_opt_in PostHog event when users choose to opt in or out during onboarding
  • Event bypasses the analytics enabled check so we can measure opt-in rates from both choices
  • Includes opted_in (bool), OS, arch, and CLI version as properties

Test plan

  • Run login flow, choose "Yes" — verify analytics_opt_in event with opted_in: true in PostHog
  • Run login flow, choose "No" — verify analytics_opt_in event with opted_in: false in PostHog

Capture an analytics_opt_in event when users choose to opt in or out
of analytics during onboarding. The event bypasses the analytics
enabled check so we can measure opt-in rates from both choices.
@theFong theFong requested a review from a team as a code owner February 26, 2026 05:34
@theFong theFong merged commit d6cd062 into main Feb 26, 2026
9 checks passed
@theFong theFong deleted the chore/record-opt-in-metric branch February 26, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants