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

# Mobile app analytics

> What to measure in a mobile app, and how to add analytics to a React Native or Expo app: screens, events, releases, errors and failed requests.

Updated: 2026-11-29

Mobile app analytics counts what people do in your app: which screens they open, which actions they finish, which release they run, and where the app fails them. For a React Native or Expo app, [nextanalytica](/) does it with one SDK, `@nextanalytica/react-native`: screens, your own events, app versions, JavaScript errors and failed requests to your API, read by your agent next to your website's numbers.

## What should you measure in an app?

- **Screens:** which ones people open, and in what order.
- **Your events:** sign-ups, purchases, the actions your app exists for.
- **Releases:** whether the newest version does better or worse than the one before.
- **Errors:** JavaScript errors and failed requests to your API, by screen and release.
- **Devices:** platform, system version and phone model, to find where problems cluster.

## How do you add it to a React Native or Expo app?

Your agent does the steps with nextanalytica's MCP tools: it registers your iOS and Android app ids, adds the SDK and checks a development build. To do it by hand, install the SDK in an Expo app:

```sh title="Terminal"
npx expo install @nextanalytica/react-native expo-application expo-device @react-native-async-storage/async-storage
```

Then wrap your app's root:

```tsx title="App.tsx"
import { NextanalyticsProvider } from "@nextanalytica/react-native";

export default function App() {
  return (
    <NextanalyticsProvider projectKey="na_…" apiHosts={["api.shop.example"]}>
      {/* your app */}
    </NextanalyticsProvider>
  );
}
```

Send your own events with `track("signup_completed", { plan: "team" })`. Everything else, including bare React Native without Expo: [React Native and Expo](/docs/tracking/react-native).

## How does consent work in an app?

Call `consent("granted")` or `consent("denied")` at every launch, from the answer your own consent screen keeps. Before a yes, nothing is kept on the phone and there's no device id; after it, the SDK keeps a random device id. It never asks for App Tracking Transparency, because nothing is shared across apps, and it sends no advertising id.

## Did the new release break anything?

Ask your agent "Did the new release break anything?" `check_release` compares the newest release with the one before it: new errors, failing requests, and conversion rates once each has enough visits. The release is the app's version and build, with over-the-air updates told apart.

## What does it not do yet?

Today the SDK is for React Native and Expo, and it sees JavaScript errors only: a crash in native code ends the app without a report. See [What is coming?](/docs/tracking/react-native#what-is-coming).

## Next steps

- [React Native and Expo](/docs/tracking/react-native)
- [Check your work](/docs/model-context-protocol/check-your-work)
- [Custom events](/docs/tracking/custom-events)

Canonical address: https://nextanalytica.app/docs/learn/mobile-app-analytics
