Skip to content
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

Update javascript.mdx #1679

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
3 changes: 2 additions & 1 deletion pages/docs/tracking-methods/sdks/javascript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ Before you enable Session Replay for a large audience, we recommend testing in a

### Implementation / Sampling


Implementing Session Replay and setting your sampling rate can be accomplished in a single step during the SDK initialization. Here’s how to activate Session Replay and control the volume of session data captured:

```javascript
Expand All @@ -770,7 +771,7 @@ mixpanel.init(

Start with a low sampling rate, such as 1%, and adjust according to your specific analytics needs.

Note: This is the only change needed in your existing JavaScript SDK setup to enable Session Replay.
> Note: This is the only change needed in your existing JavaScript SDK setup to enable Session Replay.

### Init Options

Expand Down
Loading