Skip to content

Commit 4211294

Browse files
stayseesongpwseg
andauthored
Update src/connections/sources/catalog/libraries/website/javascript/index.md
Co-authored-by: pwseg <[email protected]>
1 parent 8a3ba7f commit 4211294

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The Identify call has the following fields:
7171
| `callback` | optional | Function | A function executed after a timeout of 300 ms, giving the browser time to make outbound requests first. |
7272

7373

74-
If you want to set the `userId` without sending an identify call, you can use `analytics.user().id('123')`. In the NPM package, use `analytics.instance.user().id(xxx)`. This method updates the stored `userId` locally without triggering a network request. This is helpful if you want to associate a user ID silently, without sending additional data to Segment or connected destinations. Be cautious when changing the `userId` mid-session to avoid double-counting users or splitting their identity history.
74+
If you want to set the `userId` without sending an Identify call, you can use `analytics.user().id('123')`. In the NPM package, use `analytics.instance.user().id(xxx)`. This method updates the stored `userId` locally without triggering a network request. This is helpful if you want to associate a user ID silently, without sending additional data to Segment or connected destinations. Be cautious when changing the `userId` mid-session to avoid double-counting users or splitting their identity history.
7575

7676
By default, Analytics.js caches traits in the browser's `localStorage` and attaches them to each Identify call.
7777

0 commit comments

Comments
 (0)