You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Report: storage.type: none Setting Still Creates Entries in Local Storage
Description
The storage.type: none setting in the @rudderstack/analytics-js SDK does not appear to function as expected. Despite configuring the SDK to use no storage, some entries are still being created and persisted in the local storage. This issue also persists when using memoryStorage as the storage type.
Inspect the local storage in Developer Tools and verify that some entries are still present even when storage.type is set to none.
Expected Behavior
When storage.type is set to none, no entries should be created or persist in the local storage.
Observed Behavior
Local storage contains entries despite explicitly configuring storage.type: none. This behavior is unexpected.
Below is a screenshot of the local storage content:
Additionally, when memoryStorage is used, the issue persists and entries are still visible in local storage.
Additional Information
SDK installation type: NPM
SDK version: @rudderstack/analytics-js@^3.11.17
Node version: v22.11.0
NPM version: 10.9.0
Frameworks and Versions: Tested on vite and Next.js 15
Bundling Toolset: Not specified
Environment Details
Operating System: NixOS
Browsers Tested: Firefox, Chromium, Brave (issue is consistent across all)
Browser Versions: Latest versions of each browser.
Our primary concern is compliance with EU tracking consent regulations. We use Termly for managing user consent, and we've observed a large number of uncategorized cookies, including those created by RudderStack, even with all storage configurations set to "none."
This complicates our ability to provide users with accurate information about cookie usage. While it would be ideal to have a way to fully disable these cookies, we can work around it if this isn't something you're planning to change.
Bug Report:
storage.type: none
Setting Still Creates Entries in Local StorageDescription
The
storage.type: none
setting in the@rudderstack/analytics-js
SDK does not appear to function as expected. Despite configuring the SDK to use no storage, some entries are still being created and persisted in the local storage. This issue also persists when usingmemoryStorage
as the storage type.Steps to Reproduce
App.tsx
as follows (replace placeholders with appropriate values forWriteKey
andDataPlaneUrl
):storage.type
is set tonone
.Expected Behavior
When
storage.type
is set tonone
, no entries should be created or persist in the local storage.Observed Behavior
Local storage contains entries despite explicitly configuring
storage.type: none
. This behavior is unexpected.Below is a screenshot of the local storage content:
Additionally, when
memoryStorage
is used, the issue persists and entries are still visible in local storage.Additional Information
@rudderstack/analytics-js@^3.11.17
v22.11.0
10.9.0
vite
andNext.js 15
Environment Details
Am i doing something wrong or is it a bug ?
Link to documentation https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/data-storage-cookies/persistent-data-storage/
The text was updated successfully, but these errors were encountered: