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
-[Retrieving the anonymousId](#retrieving-anonymousid)
207
207
-[Configure iOS deep link tracking](#configure-ios-deep-link-tracking)
208
208
-[Device identifiers](#device-identifiers)
209
209
@@ -446,13 +446,14 @@ private AnalyticsReactNativePackage analytics = new AnalyticsReactNativePackage(
446
446
analytics.setAnonymousId("My-New-Native-Id");
447
447
}
448
448
```
449
-
### Retrieving AnonymousId
450
-
The React Native library does not have a specific method for retrieving anonymousId. However, you can access this value by calling the following in your code:
451
-
```js
449
+
### Retrieving the anonymousId
450
+
The React Native library does not have a specific method for retrieving the anonymousId. However, you can access this value by calling the following in your code:
451
+
452
+
```js
452
453
segmentClient.userInfo.get().anonymousId
453
454
```
454
455
455
-
Retrieving the anonymousId can be useful if you need to pass this value to your backend, or if you are using a web view component with our AJS library and need to link user activity.
456
+
Retrieving the anonymousId can be useful if you need to pass this value to your backend, or if you're using a web view component with Segment's Analytics.js library and need to link user activity.
0 commit comments