This sends product analytics to Amplitude: src/lib/analytics.ts initialises @amplitude/analytics-react-native 1.x on the first analytics consent (only when the key is set) and implements analytics.track/identify/screen, with a pass-through AnalyticsProvider (order 40, since the SDK has no React provider). screen maps to trackScreenView ([Amplitude] Screen Viewed) and identify maps to setUserId plus an Identify call for user properties, where null unsets a property. If you set up with --with-examples there's an example at /examples/analytics with a list of the last events sent. @/lib/analytics keeps the same API whichever option you pick - pick Amplitude when your team already lives in its funnels and cohorts.
At a glance
- Runs in Expo Go
- Yes
- Files added
- 6
- npm packages
- 2
- Keys to paste
EXPO_PUBLIC_AMPLITUDE_KEY- Included in
- Pro
Set it up
bun run setup --analytics amplitudeSetup copies the module in, installs SDK-matched versions and removes the options you did not pick. Then bun run doctor lists every key still missing, with a link to where you get it. The step-by-step guide is in the Amplitude docs.
Other analytics options
- PostHog - product analytics + feature flags (analytics.isFeatureEnabled / useFeatureFlag) · Expo Go OK
Get it
Amplitude ships in Pro: one payment, lifetime updates. See pricing or browse every module.