segmentio / segmentio/analytics.js-integrations

Option to use sessionStorage instead of localStorage

Open
#522 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.