Skip to content

Commit 5d86fab

Browse files
authored
Update identity.md
1 parent cef56f0 commit 5d86fab

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/identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ analytics.user().anonymousId();
4545

4646
If the user's `anonymousId` is `null` (meaning not set) when you call this function, Analytics.js automatically generated and sets a new `anonymousId` for the user.
4747

48-
If you are using the npm library, the call above returns a promise for user(). As a workaround you'll need to grab the user's current `anonymousId` in the following way:
48+
If you are using the npm library, the previous call returns a promise for `user()`. As a workaround, you'll need to grab the user's current `anonymousId` in the following way:
4949

5050
```js
5151
analytics.instance?.user().anonymousId()

0 commit comments

Comments
 (0)