docs(react-native-tracker): document react-native-web prerequisites and known limitations - #1874
Draft
snowplow-claude-review[bot] wants to merge 1 commit into
Draft
Conversation
|
Thanks for your pull request. Is this your first contribution to a Snowplow open source project? Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://docs.snowplowanalytics.com/docs/contributing/contributor-license-agreement/ to learn more and sign. Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
documentation | 98a5b53 | Commit Preview URL Branch Preview URL |
Jul 23 2026, 09:24 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents how to use the React Native tracker in a browser SPA via
react-native-web, including setup prerequisites and known limitations.What and why
The tracker's
index.mdalready listed web as a supported target alongside iOS, Android, and Expo, but gave no guidance on what is required to make it work or what degrades. A customer running the tracker in a plain browser SPA found screen entity andscreen_endabsent — the most likely causes are a missing@react-native-async-storage/async-storageweb adapter (causing a silentnewTracker()Promise rejection) or callingtrackScreenViewEventbefore the async init resolves. This PR closes the documentation gap so users can self-serve.Changes
docs/sources/react-native-tracker/index.mdNew "Using with react-native-web" section:
@react-native-async-storage/async-storageweb adapter must be configured (oruseAsyncStorageForEventStore: falseset);newTracker()must be awaited before the first tracking call.platformContextentity is entirely absent whenPlatform.OS === 'web'(all four required fields —osType,osVersion,deviceManufacturer,deviceModel— are undefined);lifecycleAutotrackinguses tab visibility state changes rather than native app state on web.docs/sources/react-native-tracker/tracking-events/screen-tracking/index.mdNew "Using screen tracking in a browser SPA" section confirming that screen entity and
screen_endwork correctly without a navigation library integration, and calling out theawait newTracker()prerequisite explicitly with a cross-reference to the prerequisites inindex.md.What to check
/index.md, nohttps://docs.snowplow.ioabsolute links.useAsyncStorageForEventStore: falseoption is documented as an alternative for users who cannot configure the web adapter.Draft PR opened for review — please verify and run CI before merging.