Skip to content

Commit 6d8364e

Browse files
Merge pull request #6467 from segmentio/prigiattiperrut-patch-4
anonymousId change when userId is sent to an empty string
2 parents ac8b42c + 32856ad commit 6d8364e

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ A user's `anonymousId` changes when any of the following conditions are met.
5858
- The user clears their cookies _and_ `localstorage`.
5959
- Your site or app calls [`analytics.reset()`](/docs/connections/sources/catalog/libraries/website/javascript/#reset-or-logout) during in the user's browser session.
6060
- Your site or app calls `analytics.identify()` with a userId that is different from the current userId.
61+
- Your site or app is setting ajs_user_id to an empty string or calling `analytics.user().id('')`.
6162
6263
6364
### Override the Anonymous ID from the Segment snippet

0 commit comments

Comments
 (0)