Answers
How do I add analytics to an Expo or React Native app without a heavy SDK?
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?
- Run
npx expo install @nextanalytica/react-native. - Wrap your root in
<NextanalyticsProvider projectKey="na_…">. - Call
consent()at every launch. - Connect your agent: in Claude Code,
claude mcp add --transport http nextanalytica https://mcp.nextanalytica.app/mcp, then/mcpto sign in.
What can you ask your agent?
- "Did the new release break anything?"