Skip to content

Commit 4b966be

Browse files
Merge pull request #1091 from segmentio/dj/cookies
localstorage cookies explanations
2 parents 08ecefc + 81865b1 commit 4b966be

File tree

1 file changed

+11
-0
lines changed
  • src/connections/sources/catalog/libraries/website/javascript

1 file changed

+11
-0
lines changed

src/connections/sources/catalog/libraries/website/javascript/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,3 +657,14 @@ Segment's Analytics.js javascript snippet only increases the page size by about
657657
However, the snippet asynchronously requests and loads a customized javascript bundle (`analytics.min.js`), which contains the code and settings needed to load your [device-mode destinations](/docs/connections/destinations/#connection-modes). The size of this file changes depending on how many and which destinations you enable.
658658

659659
Without any destinations enabled, the `analytics.min.js` file is about 62KB. Each time you enable a destination, the file's size may increase slightly.
660+
661+
### Localstorage cookies used by Analytics.js
662+
663+
Analytics.js uses a few `localstorage` cookies if you have retries enabled, to keep track of retry timing.
664+
- The `ack` cookie is a timer used to see if another tab should claim the retry queue.
665+
- The `reclaimStart` and `reclaimEnd` cookies determine if a tab takes over the queue from another tab.
666+
- The `inProgress` and `queue` cookies track events in progress, and events that are queued to be retried.
667+
668+
For more information, visit the [Segment localstorage-retry library](https://github.com/segmentio/localstorage-retry).
669+
670+
You can set the `debug` cookie to `analytics.js` to log debug messages from Analytics.js to the console.

0 commit comments

Comments
 (0)