Product Benefits Pricing Guides Docs About Contact us Try it out
Analytics tools

Amplitude React Native SDK: Setup and Autocapture

Set up the Amplitude React Native SDK with autocapture, offline queueing and clean user identity so your mobile funnels are right from day one.

· 3 min read

Most teams install the Amplitude React Native SDK, see a few events arrive and move on. Three months later the funnels disagree between iOS and Android, sessions look short, and nobody is sure which events are automatic and which were hand-written.

The SDK has changed a lot recently. Autocapture is available from @amplitude/analytics-react-native 1.6.8, and offline handling arrived in 1.6.0, where events that would once have been dropped after their retries are stored and sent when the device reconnects. If you set the SDK up before those versions, check your install.

What Goes Wrong Without a Deliberate Setup

Old SDK versions silently lose events on poor connections, which hits emerging-market and commuter users hardest. Autocapture left on without a plan creates noisy, high-volume events. A user ID set late splits one person into two profiles. Each of these skews retention and conversion numbers while the dashboards still look healthy.

Data Points to Track

Whatever autocapture gives you, record these properties on your own key events so you can audit the setup:

  • sdk_version: the installed @amplitude/analytics-react-native version
  • platform: iOS or Android
  • app_version and build_number
  • autocapture_enabled: which autocapture types are switched on
  • user_id_set: whether the user ID was set before the first event
  • device_id_source: generated by the SDK or supplied by you
  • connection_state: online or offline when the event fired
  • queued_event_age_seconds: time between creation and delivery for offline events
  • screen_name: the screen where the action happened

Setup Steps

  1. Upgrade @amplitude/analytics-react-native to a current release and read its release notes for breaking changes. Amplitude supports only the latest React Native version, so check yours too.
  2. Initialise the SDK once, early in app start-up, with your API key and the right data region.
  3. Decide which autocapture types you want. Start with sessions and screen or page views, then add interaction capture only for areas you will analyse.
  4. Set the user ID as soon as a user signs in, and reset on sign-out so shared devices do not mix profiles.
  5. Add a small set of default event properties (app_version, plan_type, locale) so every event can be segmented.
  6. Test offline: turn on airplane mode, perform three actions, reconnect and confirm all three arrive once, with correct timestamps.
  7. Compare event counts between a debug build and the Amplitude user lookup view for the same test user.
  8. Document the setup in your tracking plan so the next developer knows what is automatic.

Actionable Insights

Compare event volume per active user across iOS and Android. A large gap usually points to a platform-specific setup mistake, not different behaviour.

Look at queued_event_age_seconds. If many events arrive hours late, your users spend long periods offline and time-sensitive analysis, such as same-day activation, needs to use event time rather than arrival time.

Watch the ratio of autocaptured to custom events. If autocapture dominates and your named events are rare, your funnels depend on generic clicks and will break the next time the UI changes.

Check how many profiles have a user_id on their first event. A low rate means identity is being set too late.