feat(analytics): per-lesson onboarding events, login tracking, environment enrichment#2594
Conversation
… enrichment Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
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 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
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. Comment |
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 names —
onboarding_stepis nowonboarding_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. Theid,index, andstateproperties are still included for backward-compatible filtering.login_from_onboardingevent — 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_environmentenrichment — every analytics event (PostHog, GA, Meta Pixel) now includesmacro_environment: 'dev' | 'prod' | 'unknown'based onimport.meta.env.MODE. Enables filtering dashboards to exclude dev environment traffic.Event name mapping
onboarding_step(id=welcome)onboarding_step_welcomeonboarding_step(id=sidebar-nav)onboarding_step_sidebar_navonboarding_step(id=navigate-list)onboarding_step_navigate_listonboarding_step(id=command-k)onboarding_step_command_konboarding_step(id=create-entity)onboarding_step_create_entityonboarding_step(id=markdown-mentions)onboarding_step_markdown_mentionsonboarding_step(id=about-us)onboarding_step_about_usonboarding_step(id=email-invite)onboarding_step_email_inviteonboarding_step(id=choose-plan)onboarding_step_choose_planlogin_from_onboarding(new)