Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/examples/analytics-package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ We do not recommend calling analytics calls directly from components as they are

By using an [analytics file](https://github.com/segmentio/react-example/blob/main/src/examples/analytics-package/useAnalytics.ts) (or files), you can have more uniform events, easily trace where they are being called in your app, and have a set place to edit analytics.

Trace the analytics functions in this hook to view where analytics calls are being made throughout the app. Since this example is not the deployed default, you must uncomment the `useAnalytics` [import](https://github.com/segmentio/react-example/blob/53ecd804f449dd06e3080c6d822b26c0a11063f4/src/examples/shared/BaseApp.tsx#L9-L10) & [useage](https://github.com/segmentio/react-example/blob/53ecd804f449dd06e3080c6d822b26c0a11063f4/src/examples/shared/BaseApp.tsx#L16-L17) and comment out the `analytics-quick-start` [import](https://github.com/segmentio/react-example/blob/53ecd804f449dd06e3080c6d822b26c0a11063f4/src/examples/shared/BaseApp.tsx#L11).
Trace the analytics functions in this hook to view where analytics calls are being made throughout the app. Since this example is not the deployed default, you must uncomment the `useAnalytics` [import](https://github.com/segmentio/react-example/blob/53ecd804f449dd06e3080c6d822b26c0a11063f4/src/examples/shared/BaseApp.tsx#L9-L10) & [usage](https://github.com/segmentio/react-example/blob/53ecd804f449dd06e3080c6d822b26c0a11063f4/src/examples/shared/BaseApp.tsx#L16-L17) and comment out the `analytics-quick-start` [import](https://github.com/segmentio/react-example/blob/53ecd804f449dd06e3080c6d822b26c0a11063f4/src/examples/shared/BaseApp.tsx#L11).

We recommend planning a [full Segment installation](https://segment.com/docs/getting-started/03-planning-full-install/) to determine which events & properties to track utilize data meaningfully.

Expand Down