Skip to content

Commit 6342f21

Browse files
Update to remove webview code
1 parent 16a125c commit 6342f21

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -478,14 +478,11 @@ To retrieve and pass the anonymousId:
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, your WebView component might look like:
482-
```js
483-
<WebView
484-
ref={webViewRef}
485-
source={{uri: `http://segment.com/?ajs_aid={anonymousId}`}}
486-
/>
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:
482+
```text
483+
http://segment.com/?ajs_aid={anonymousId}
487484
```
488-
3. When a user clicks the element that opens the webview, AJS will read that parameter and automatically set the anonymousId to whatever value is passed in, linking your events across both libraries to the same user.
485+
3. When a user clicks the element that opens the webview, Analytics.js will read that parameter and automatically set the anonymousId to whatever value is passed in, linking your events across both libraries to the same user.
489486
490487
## Changelog
491488
[View the Analytics React Native changelog on GitHub](https://github.com/segmentio/analytics-react-native/releases){:target="_blank"}.

0 commit comments

Comments
 (0)