Sign inGet started
Learn

Mobile app analytics

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

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

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:

Terminal
npx expo install @nextanalytica/react-native expo-application expo-device @react-native-async-storage/async-storage

Then wrap your app's root:

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.

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?.

Next steps

Related
  • How to check your website traffic: Four ways to check your website's traffic, from analytics to Search Console and server logs, what each one counts, and how to ask your agent instead.
  • Bounce rate: What bounce rate means, how it's calculated in nextanalytica and in GA4, why the two differ, and how to find the pages people leave.
  • UTM tags: What UTM tags are, the parameters and which ones to always set, naming rules that keep reports clean, and how to read campaigns by UTM with your agent.
  • Revenue tracking: Track revenue on your website so every order ties to the visit, channel and campaign it came from, from the browser, your server or WooCommerce.
  • Attribution models: How your agent credits each order to the visits before it, by last click, first click or linear, with ROAS by ad account and LTV by channel.
  • ROAS by ad: How your agent shows spend, orders, revenue and ROAS for each Meta and Google ad, and the one setting Meta needs so a visit names its ad.
Still have questions?
Was this page useful?