-
Notifications
You must be signed in to change notification settings - Fork 133
Description
Summary
For privacy reasons we'd love to use Amplitude without using any cookies nor local storage.
Motivations
Due to the "Cookie Law" in Europe, a web site or page needs a "cookie approval" before storing anything in a cookie or in a local storage. However it's OK to still log, using amplitude, events and information relative to the website as long as everything stays in RAM. This could be used for the landing page to compute direct conversion even for users who don't approve the use of cookies or local storage.
In terms of implementation, I could provide a PR, if you're OK with the idea: the current implementation already works without using the storage, the storage is only useful when the page is refreshed.
For the moment the way we handle it is to use the disableCookies
option and clear the local cache on the callback of every logEvent, however this is suboptimal as some data is still stored and could be kept if the user closes the page before Amplitude server's response. It's also suboptimal because we're basically undoing what the library does, so it would be cleaner not to do it in the first place.