• Product

    • FeaturesFunnels, alerts, AI traffic and imports.
    • Live mapVisitors on a globe as they arrive.
    • SpeedA script under 1 KB. Visits in a second.
    • Integrations26 tools, from Slack to WordPress.
    • MCP serverAI tools set up sites and dashboards.

    Get started

    • Quick startOne script tag, and visits show up.
    • With an AI agentOne prompt, and your agent adds it.
    • API and CLIYour numbers in scripts and CI.
    • Install guides
      • Script tag
      • Next.js
      • React
      • Website builders
    Live demoacme.devLast 30 daysVisitors1,49325.5%PageVisitors/612/pricing341/docs/install208Click around before you sign up.Open the demoCompareHow we stack up against Google Analytics, Plausible, Fathom, PostHog and Umami
  • Company

    • AboutWhy it exists and how it is built.
    • BlogPrivacy, speed and how we build.
    • ContactQuestions on plans, setup or privacy.
    • BrandThe logo, colors, type and files.

    Trust

    • PrivacyWhat we collect and why.
    • TermsPlans, limits and your data.
    • StatusWhether everything is up right now. (opens in a new tab)
    Latest post4checks before DirectWhere Direct traffic comes fromNov 11, 2026Read the post
  • Blog
  • Docs
  • Pricing
Sign inStart free
FeaturesDemoSpeedBlogDocsPricing
Start freeSign in

Free for three sites. No card needed.

Getting started

  • Introduction
  • Quick start
  • Set up with an AI agent
  • CLI
  • CLI guide
  • How counting works

Install

  • Script tag
  • Next.js
  • React
  • React Native and Expo
  • Swift
  • Other frameworks
  • Server
  • Website builders

Mobile

  • Mobile apps
  • Screens and events
  • Swift apps
  • Development builds
  • Visitors and offline
  • App Store and Play privacy

Dashboard

  • Overview and filters
  • Custom dashboards
  • Realtime
  • Events page
  • Explore
  • Segments
  • Sessions
  • People
  • Journeys
  • Retention
  • Load
  • Web vitals
  • Errors
  • Revenue
  • Search Console
  • Visibility
  • Data quality
  • Transfer a site
  • Import and export
  • Scheduled reports

Tracking

  • Custom events
  • Signed-in users
  • Links and downloads
  • Goals and funnels
  • Alerts
  • Annotations
  • Excluded pages
  • Page addresses
  • Share links and embeds
  • Sitemaps

API

  • Overview
  • Query API
  • Load and vitals
  • Raw export
  • Live stream
  • MCP server

Platform

  • Architecture
  • Privacy and data

Getting started

  • Introduction
  • Quick start
  • Set up with an AI agent
  • CLI
  • CLI guide
  • How counting works

Install

  • Script tag
  • Next.js
  • React
  • React Native and Expo
  • Swift
  • Other frameworks
  • Server
  • Website builders

Mobile

  • Mobile apps
  • Screens and events
  • Swift apps
  • Development builds
  • Visitors and offline
  • App Store and Play privacy

Dashboard

  • Overview and filters
  • Custom dashboards
  • Realtime
  • Events page
  • Explore
  • Segments
  • Sessions
  • People
  • Journeys
  • Retention
  • Load
  • Web vitals
  • Errors
  • Revenue
  • Search Console
  • Visibility
  • Data quality
  • Transfer a site
  • Import and export
  • Scheduled reports

Tracking

  • Custom events
  • Signed-in users
  • Links and downloads
  • Goals and funnels
  • Alerts
  • Annotations
  • Excluded pages
  • Page addresses
  • Share links and embeds
  • Sitemaps

API

  • Overview
  • Query API
  • Load and vitals
  • Raw export
  • Live stream
  • MCP server

Platform

  • Architecture
  • Privacy and data

Cookieless web and product analytics. Fast to load, fast to read.

Start free, no card needed

Product

FeaturesLive mapDemoTry it on your siteSpeedPricingCompare

Get started

InstallDocsQuestionsSign inStart freeJoin the waitlist

Company

AboutBlogContactStatus (opens in a new tab)Brand

Legal

Privacy policyTerms of service

© 2026 Ultanimus. This site sets no cookies.

Install

React Native and Expo

Install the React Native package, add the component once and check your first screens under Test events.

The React Native package counts iOS and Android apps built with React Native or Expo. It is plain JavaScript with no native module, so it runs in Expo Go and needs no prebuild, config plugin or pod install. It needs React Native 0.79 or newer. Mobile apps explains how apps count.

Add the app to a site#

An app counts under a site, the same way a website does.

  • The app goes with a website. Open that site's settings and add the app's ID under Apps. That is the bundle ID on iOS or the package name on Android, such as com.acme.app.
  • An app with no website. In Add a site, pick An app only and enter the app's ID.

Apps and sites covers separate iOS and Android IDs and app variants.

Install the package#

Terminal
npx expo install @ultanimus/react-native

In a bare React Native app, run npm install @ultanimus/react-native instead.

Add the component#

Render Analytics once, with the site ID from your site's settings. Pick the import that matches how your app moves between screens.

Expo Router#

Put it in your root layout, app/_layout.tsx, or src/app/_layout.tsx in newer templates. It reads the app's ID and version from your Expo config.

app/_layout.tsx
import { Analytics } from '@ultanimus/react-native/expo-router'
import { Stack } from 'expo-router'

export default function Layout() {
  return (
    <>
      <Stack />
      <Analytics site="YOUR_SITE_ID" />
    </>
  )
}

React Navigation#

Put it inside NavigationContainer and pass the app's ID and version.

App.tsx
import { Analytics } from '@ultanimus/react-native/navigation'
import { NavigationContainer } from '@react-navigation/native'

export function App() {
  return (
    <NavigationContainer>
      <Screens />
      <Analytics site="YOUR_SITE_ID" app="com.acme.app" version="2.4.0" />
    </NavigationContainer>
  )
}

Any other navigation#

Render the plain component once, with the app's ID and version, then name each screen where it renders.

TSX
import { Analytics, useScreen } from '@ultanimus/react-native'

export function App() {
  return (
    <>
      <Screens />
      <Analytics site="YOUR_SITE_ID" app="com.acme.app" version="2.4.0" />
    </>
  )
}

function Checkout() {
  useScreen('Checkout')
  return <CheckoutForm />
}

Screens and events covers renaming screens and what counts as a view.

Send an event#

TSX
import { track } from '@ultanimus/react-native'

track('add_to_cart', { sku: 'lamp', quantity: 2 })

Check that it works#

Open the app in Expo Go or a development build and move between a few screens. Each screen and event shows under Test events in the site's settings within a few seconds. Development builds never count, so the dashboard stays empty until a release build sends its first event. Development builds explains test builds and staging.

Next steps#

  • Screens and events: rename screens, send events, and name the signed-in person.
  • Visitors and offline: storage, consent and sending without a connection.
  • App Store and Play privacy: what to answer on each store's form.
PreviousReactNextSwift

On this page

  • Add the app to a site
  • Install the package
  • Add the component
  • Expo Router
  • React Navigation
  • Any other navigation
  • Send an event
  • Check that it works
  • Next steps
View as Markdown