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
-[Configure iOS deep link tracking](#configure-ios-deep-link-tracking)
207
208
-[Device identifiers](#device-identifiers)
208
209
@@ -445,6 +446,14 @@ private AnalyticsReactNativePackage analytics = new AnalyticsReactNativePackage(
445
446
analytics.setAnonymousId("My-New-Native-Id");
446
447
}
447
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
452
+
segmentClient.userInfo.get().anonymousId
453
+
```
454
+
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
+
448
457
### Configure iOS deep link tracking
449
458
> warning ""
450
459
> This is only required for iOS if you're using the `trackDeepLinks` option. Android doesn't require any additional setup.
0 commit comments