Skip to content

Commit a630bd5

Browse files
authored
Add info for cookies that set by Analytics.js
1 parent 9fe904b commit a630bd5

File tree

1 file changed

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

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,25 @@ The snippet asynchronously requests and loads a customized JavaScript bundle (`a
783783

784784
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.
785785

786+
### Cookies set by Analytics.js
787+
788+
Segment sets three cookies in general:
789+
| Cookie | Description |
790+
| ------------------ | --------------------------------------------------------------------------------- |
791+
| `ajs_anonymous_id` | An anonymous ID generated by Analytics.js, used for Segment calls. |
792+
| `ajs_group_id` | A group ID that can be specified by making a `group()` call with Analytics.js. |
793+
| `ajs_user_id` | A user ID that can be specified by making an `identify()` call with Analytics.js. |
794+
795+
These cookies expire by default **one** year after the date created.
796+
797+
Some user/group traits are also stored in `localStorage`:
798+
| Cookie | Description |
799+
| ---------------------- | --------------------------------------------------- |
800+
| `ajs_user_traits` | The traits that are passed in an `identify()` call. |
801+
| `ajs_group_properties` | The properties that are passed in a `group()` call. |
802+
803+
The `localStorage` variables don't have an expiry, as that functionality is defined by the browser.
804+
786805
### Local storage cookies used by Analytics.js
787806

788807
Analytics.js uses `localstorage` cookies if you have retries enabled, to keep track of retry timing.

0 commit comments

Comments
 (0)