analytics.js-integrations icon indicating copy to clipboard operation
analytics.js-integrations copied to clipboard

Option to use sessionStorage instead of localStorage

Open acordiner opened this issue 4 years ago • 0 comments

When the retryQueue option is enabled in the Segment integration, it will queue events in localStorage. This means that unsent events may be left behind in localStorage and easily viewable by other people on a shared/public device. For privacy reasons, it would be great to be able to use sessionStorage instead of localStorage so that the unsent events are cleared when the session ends. Happy to contribute a PR if this sounds like a good idea!

acordiner avatar Nov 17 '20 05:11 acordiner