You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/libraries/website/javascript/identity.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ analytics.user().anonymousId();
45
45
46
46
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.
47
47
48
-
Using the npm libraryyou'll need to grab the user's current `anonymousId`with the following:
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:
0 commit comments