Skip to content

Commit 2dfa014

Browse files
Apply suggestions from code review
Co-authored-by: rchinn-segment <[email protected]>
1 parent 6342f21 commit 2dfa014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connections/sources/catalog/libraries/mobile/react-native/implementation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,15 @@ To collect the Android Advertising ID provided by Play Services, Segment provide
470470
471471
### Using a WebView Component with React Native
472472
473-
If you use a webView component in your app that utilizes our [Analytics.js](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/){:target="_blank"} library, you can utilize our [Querystring API](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/querystring/){:target="_blank"} to pass the anonymousId from your React Native app to Analytics.js to ensure activity from anonymous users can be linked across these two sources.
473+
If you use a webView component in your app that uses Segment's [Analytics.js](/docs/connections/sources/catalog/libraries/website/javascript/){:target="_blank"} library, you can use Segment's [Querystring API](/docs/connections/sources/catalog/libraries/website/javascript/querystring/){:target="_blank"} to pass the anonymousId from your React Native app to Analytics.js to ensure activity from anonymous users can be linked across these two sources.
474474
475475
To retrieve and pass the anonymousId:
476476
477477
1. Retrieve anonymousId from the React Native library using:
478478
```js
479479
const anonymousId = segmentClient.userInfo.get().anonymousId
480480
```
481-
2. Pass this value into the querystring that opens the webview using the ```ajs_aid``` optional query string parameter noted in the above linked documentation. For example, the URL that opens your webview might look like:
481+
2. Pass this value into the querystring that opens the webview using the `ajs_aid` optional query string parameter noted in the documentation above. For example, the URL that opens your webview might look like:
482482
```text
483483
http://segment.com/?ajs_aid={anonymousId}
484484
```

0 commit comments

Comments
 (0)