segmentio / segmentio/analytics.js-integrations
Option to use sessionStorage instead of localStorage
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 125
- Forks
- 136
- Avg merge
- 2h 45m
- Merged PRs (30d)
- 1
Description
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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Segment integration code that handles the retryQueue option and its localStorage usage. Check how storage behavior is tested, then add the requested sessionStorage choice and verify that queued events use the selected storage and are cleared when the session ends.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100