Fill gaps from assistant conversations: replay option typo, sessions export FAQ - #230
Fill gaps from assistant conversations: replay option typo, sessions export FAQ#230mintlify[bot] wants to merge 2 commits into
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Confidence Score: 4/5The incorrect exclusion of Mixpanel UI configuration should be corrected before merging. The option name is fixed correctly, but the new categorical guidance contradicts the same page’s supported remote configuration workflow. Files Needing Attention: docs/tracking-methods/sdks/javascript/javascript-replay.mdx
|
| Filename | Overview |
|---|---|
| docs/features/sessions.mdx | Adds an accurate FAQ explaining why virtual session events require report-level exports. |
| docs/tracking-methods/sdks/javascript/javascript-replay.mdx | Corrects the option typo but incorrectly excludes the documented Mixpanel UI configuration path. |
Reviews (1): Last reviewed commit: "docs: point Raw Data Export API link to ..." | Re-trigger Greptile
| When the SDK initializes, it makes a sampling decision based on your configured sampling rate. A percentage of initializations will trigger session recording accordingly. | ||
|
|
||
| To enable Session Replay and set your sampling rate, set the `recording_sessions_percent` when initializing the SDK. This is the only change needed in your existing JavaScript SDK implementation to enable Session Replay. | ||
| To enable Session Replay and set your sampling rate, set the `record_sessions_percent` init option when initializing the SDK. This is the only change needed in your existing JavaScript SDK implementation to enable Session Replay. Init options are set in your website's source code where you call `mixpanel.init()`, not in the Mixpanel UI. |
There was a problem hiding this comment.
UI configuration contradiction
The statement that init options are “not in the Mixpanel UI” contradicts this page’s Remote Configuration section, which says record_sessions_percent can be configured under Organization Settings for paid Session Replay customers using SDK 2.74.0 or later. These users may incorrectly conclude that sampling must be controlled only in source code.
Summary
Fixes recurring points of confusion surfaced by assistant conversations about Session Replay configuration and exporting session data.
Changes
recording_sessions_percentto the actual init option namerecord_sessions_percentin the JavaScript Session Replay docs, and clarified that init options are set in your site's code, not the Mixpanel UI.Context
Assistant query buckets showed repeated questions about the correct sampling option name (a docs typo confirmed the confusion) and about exporting session start/end times, which the docs did not address directly.