Sign inGet started
Answers

How do I add analytics to an Expo or React Native app without a heavy SDK?

View as MarkdownOpen in ChatGPTOpen in Claude
Connect your agent
Add to CursorAdd to VS Code

Add analytics to an Expo or React Native app with one plain-JavaScript SDK: screens, events, releases, errors and failed requests.

Updated

Use @nextanalytica/react-native: plain JavaScript on the same tracker as the web tag, so it works in Expo Go. It counts screens, your events, app versions, JavaScript errors and failed requests to your API, and sends no advertising id.

How do you do it?

  1. Run npx expo install @nextanalytica/react-native.
  2. Wrap your root in <NextanalyticsProvider projectKey="na_…">.
  3. Call consent() at every launch.
  4. Connect your agent: in Claude Code, claude mcp add --transport http nextanalytica https://mcp.nextanalytica.app/mcp, then /mcp to sign in.

What can you ask your agent?

  • "Did the new release break anything?"

Next steps