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

[Question] Expected behaviour when identifying whilst opt'd out #9

Closed
ouchadam opened this issue Feb 14, 2022 · 1 comment
Closed

Comments

@ouchadam
Copy link

Hello!

What's the expected behaviour when calling posthog.identify whilst the posthog client is opt'd out?
I can see that the propertiesCache contains the properties set whilst the client was opt'd out but they're never sent.

posthog.optOut(true)
posthog.identify(properties)
posthog.optOut(false)
posthog.identify(id)
@marandaneto
Copy link
Member

Sorry for the delay.
Yes, the properties are cached but never sent unless you opt in again.
https://posthog.com/docs/libraries/js#opt-users-out

We're currently reworking the Android SDK and this may change, stay tuned.

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

2 participants