We recently switched from Posthog to Amplitude. We don’t use the Amplitude SDK; instead, we use the Rudderstack SDK in cloud mode + the Amplitude Experiments SDK.
With Posthog, we had to reset the anonymousId on logout. However, there’s no anonymousId in Amplitude. We only have the deviceId. What should we clear on logout? And should we clear the deviceId?
----------------------------------------------------------
So, here’s some context:
- We don’t require an account to browse our app/website, except to checkout. So users usually browse logged out, and then sign up/sign in at the last step.
- Users may (and do) sign into multiple accounts (not at the same time!). They sign into one account, purchase, sign out, maybe browse a bit, then sign into a different account, make another purchase, ... Even though it’s the same device, we can’t treat them as the same person. This behaviour is normal and sufficiently expected for our product, and we must indeed consider them different people.
- Events produced while a user is signed out should be merged into the user that signs in later, not the user that signed out.
Thank you!