Skip to content

Commit 6e39532

Browse files
committed
Merge branch 'main' into fix/docs-typos
2 parents 9c5525e + ac6ada6 commit 6e39532

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

versioned_docs/version-8.x/screen-tracking.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ export default function App() {
7676
ref={navigationRef}
7777
onReady={() => {
7878
routeNameRef.current = navigationRef.current.getCurrentRoute().name;
79+
80+
// Replace the line below to add the tracker from a mobile analytics SDK
81+
await trackScreenView(currentRouteName);
7982
}}
8083
onStateChange={async () => {
8184
const previousRouteName = routeNameRef.current;

0 commit comments

Comments
 (0)