-
Notifications
You must be signed in to change notification settings - Fork 3
[WEB-4827] Disable automatic pageview tracking in Mixpanel autocapture #987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
We track pageviews manually, so disable the automatic pageview tracking that's built into Mixpanel's autocapture feature.
WalkthroughVersion bump from 17.9.11 to 17.9.12 with gitignore updates for local development tools (.idea/, .claude/settings.local.json) and a Mixpanel configuration adjustment adding pageview: false to disable autocapture page view tracking in favor of manual tracking. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (3)
Comment |
04db1ba to
7d4531b
Compare
Summary
Disables automatic pageview tracking in Mixpanel's autocapture feature by adding
pageview: falseto the autocapture configuration.Before
Here is a screenshot from Voltaire before this fix, auto capture is enabled as well as debugging. When filtering for Mixpanel I can see duplicate
$mp_web_page_viewevents:The "autocapture" logging also shows "Initializing pageview tracking" as enabled
After
Here is a screenshot from Voltaire with auto capture enabled as well as debugging, note when I filter the console I only see one
$mp_web_page_viewevent:The "autocapture" logging no longer shows "Initializing pageview tracking"
Changes
pageview: falseto the Mixpanel autocapture config insrc/core/insights/mixpanel.tsReason
We track pageviews manually using our own
trackPageViewfunction, so we don't need Mixpanel's autocapture to also track pageviews automatically. This prevents duplicate pageview events.Related
Summary by CodeRabbit
Release Notes
Chores
✏️ Tip: You can customize this high-level summary in your review settings.