Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/features/sessions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@ Similarly, you can use the same property as above. In this case, you would need

For additional information, I've also included Formula B to show how "Sum per User by Average" works.

### Can I export Session Start and Session End events via API?

No. Session Start and Session End are virtual events. Mixpanel computes them dynamically at query time, so they are not stored in your raw event data and cannot be exported through the [Raw Data Export API](/reference/raw-data-export-api).

To get session data out of Mixpanel, build a report that uses the Session Start or Session End events (for example, an Insights report broken down by session properties) and export the report results as CSV. See [Export Methods](/docs/export-methods) for report export options.

### What Mixpanel API events are by default excluded from session calculations?

- `$identify`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ We recommend using the sampling method unless you need to customize when you cap

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.
Comment thread
mbocianski marked this conversation as resolved.

<Note>
To start, we recommend using an 100% sampling rate to ensure replay capture is behaving as expected, then adjust according to your specific analytics needs.
Expand Down