Skip to content

Commit

Permalink
docs(analytics): add screen_class to navigation screen tracking examp…
Browse files Browse the repository at this point in the history
…les (#4174)

* Update screen-tracking.md
* Apply suggestions from code review

Co-authored-by: Mike Hardy <[email protected]>
  • Loading branch information
MoKhajavi75 and mikehardy authored Aug 29, 2020
1 parent c0500c9 commit 01fed16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/analytics/screen-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { NavigationContainer } from '@react-navigation/native';
if (previousRouteName !== currentRouteName) {
await analytics().logScreenView({
screen_name: currentRouteName,
screen_class: currentRouteName,
});
}
```
Expand Down

1 comment on commit 01fed16

@vercel
Copy link

@vercel vercel bot commented on 01fed16 Aug 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.