Description
What problem are you facing?
The SDK requires either cookies or local storage to function: When using it for analytics, analytics cookie/storage consent must be obtained from the user when GDPR compliance is required. This means that event data will not have full user coverage when using for logged in users where we can obtain consent for analytics via T&Cs. (cookie/localStorage cannot be via T&Cs).
Workarounds
None available for the SDK, have to fallback to implementing something using the braze rest api and a secured proxy to keep api key private.
Ideal Solution
Instead of noCookie: boolean
option, have a storage
option e.g. storage: 'cookie' | 'localStorage' | 'none'
. Requests could be stored in memory and sent in batches until navigation away from page (especially in SPAs) - at which point they would be sent utilising visibilitychange
window event and Beacon API .
Other Information
No response