> AI agents: this is one page of nextanalytica's docs. The full index for agents: https://nextanalytica.app/llms.txt

# 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: 2026-12-01

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

- [Mobile app analytics](/docs/learn/mobile-app-analytics)
- [React Native and Expo](/docs/tracking/react-native)

Canonical address: https://nextanalytica.app/docs/answers/analytics-for-expo-react-native
