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

$snapshot events being sent when session recordings are disabled #231

Closed
neilkakkar opened this issue May 19, 2021 · 2 comments
Closed

$snapshot events being sent when session recordings are disabled #231

neilkakkar opened this issue May 19, 2021 · 2 comments
Assignees

Comments

@neilkakkar
Copy link
Contributor

When disable_session_recording on the client is set to true, events are still sent to POST /e and POST /sessionRecording.

Unclear why this happens, since we have a Cypress test testing for it, which passes.

Narrowed down to: https://github.com/PostHog/posthog-js/blob/master/src/extensions/sessionrecording.js#L39-L40 - L39 has a check for the flag, and emit=true should ensure this.snapshots aren't populated, but seems like L40 still gets them, and thus sends the events to the endpoint.

@mariusandra
Copy link
Collaborator

This should be fixed in 1.10.2

@weyert
Copy link
Contributor

weyert commented May 25, 2021

@mariusandra Great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants