We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9c5525e + ac6ada6 commit 6e39532Copy full SHA for 6e39532
versioned_docs/version-8.x/screen-tracking.md
@@ -76,6 +76,9 @@ export default function App() {
76
ref={navigationRef}
77
onReady={() => {
78
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);
82
}}
83
onStateChange={async () => {
84
const previousRouteName = routeNameRef.current;
0 commit comments