diff --git a/versioned_docs/version-6.x/screen-tracking.md b/versioned_docs/version-6.x/screen-tracking.md index d264946128..e4387c25e7 100644 --- a/versioned_docs/version-6.x/screen-tracking.md +++ b/versioned_docs/version-6.x/screen-tracking.md @@ -32,6 +32,8 @@ export default () => { ref={navigationRef} onReady={() => { routeNameRef.current = navigationRef.getCurrentRoute().name; + // Replace the line below to add the tracker from a mobile analytics SDK + await trackScreenView(routeNameRef.current); }} onStateChange={async () => { const previousRouteName = routeNameRef.current;