Skip to content

feat(analytics): per-lesson onboarding events, login tracking, environment enrichment#2594

Merged
evanhutnik merged 2 commits into
mainfrom
evan/onboarding-analytics-again-2
Apr 15, 2026
Merged

feat(analytics): per-lesson onboarding events, login tracking, environment enrichment#2594
evanhutnik merged 2 commits into
mainfrom
evan/onboarding-analytics-again-2

Conversation

@evanhutnik
Copy link
Copy Markdown
Contributor

Summary

Extends onboarding analytics with per-lesson event names, login tracking from the welcome step, and automatic environment enrichment on all analytics events.

Changes

  • Per-lesson event namesonboarding_step is now onboarding_step_welcome, onboarding_step_sidebar_nav, onboarding_step_command_k, etc. This enables PostHog Paths to show each lesson as a distinct node with branching visualizations. The id, index, and state properties are still included for backward-compatible filtering.

  • login_from_onboarding event — fires when a user clicks the "Login" link on the welcome step instead of continuing onboarding. Enables tracking the branch between new signups and returning users in PostHog Paths.

  • macro_environment enrichment — every analytics event (PostHog, GA, Meta Pixel) now includes macro_environment: 'dev' | 'prod' | 'unknown' based on import.meta.env.MODE. Enables filtering dashboards to exclude dev environment traffic.

Event name mapping

Old New
onboarding_step (id=welcome) onboarding_step_welcome
onboarding_step (id=sidebar-nav) onboarding_step_sidebar_nav
onboarding_step (id=navigate-list) onboarding_step_navigate_list
onboarding_step (id=command-k) onboarding_step_command_k
onboarding_step (id=create-entity) onboarding_step_create_entity
onboarding_step (id=markdown-mentions) onboarding_step_markdown_mentions
onboarding_step (id=about-us) onboarding_step_about_us
onboarding_step (id=email-invite) onboarding_step_email_invite
onboarding_step (id=choose-plan) onboarding_step_choose_plan
login_from_onboarding (new)

… enrichment

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 15, 2026

Warning

Rate limit exceeded

@evanhutnik has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 57 minutes and 31 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 57 minutes and 31 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 56bbbc06-5535-4ecc-8551-af8ad8f0c9c0

📥 Commits

Reviewing files that changed from the base of the PR and between 9a26221 and 91b2970.

📒 Files selected for processing (4)
  • js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx
  • js/app/packages/app/component/interactive-onboarding/lessons/welcome.tsx
  • js/app/packages/app/lib/analytics/analytics.ts
  • js/app/packages/app/lib/analytics/app-events.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 15, 2026

@evanhutnik evanhutnik merged commit 8161af2 into main Apr 15, 2026
23 checks passed
@evanhutnik evanhutnik deleted the evan/onboarding-analytics-again-2 branch April 15, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant