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

Mobile

Visitors and offline

How apps count visitors without storing anything, when to pass storage, and how events wait for a connection.

Phones share carrier addresses and move between networks, so an app cannot count visitors the way the web script does. The package sends its own random ID instead, and it holds events while the phone is offline. The samples on this page are for React Native, and Swift apps has the Swift ones.

Visitors#

The package makes a random ID when the app starts and keeps it in memory. The server hashes it with a key that changes every day and never stores it. Nothing is written to the phone, so each cold start counts as a new visitor.

To count a person once a day across restarts, pass storage. The package then keeps the day's ID and any events still waiting to be sent, and makes a new ID each day. Storing data on a device can need consent where you ship, so check before you turn it on.

TSX
import AsyncStorage from '@react-native-async-storage/async-storage'

<Analytics site="YOUR_SITE_ID" storage={AsyncStorage} />

Any object with getItem and setItem works, so MMKV needs a two-line wrapper. A signed-in person counts as one visitor across days and devices either way, through their ID.

Sessions#

A session ends after 30 minutes without an event, as on the web. Coming back to the app after that starts a new session, and its first screen counts as the entry. Visit length comes from when the app goes to the background, so it counts the time someone spent in the app.

Sending and offline#

Events leave in one request every 5 seconds, at 20 events, or when the app goes to the background. Without a connection the newest 100 wait and go out later, dated at the time they happened. Events older than 24 hours are dropped. A request that fails and is sent again never counts twice.

Turn it off#

Pass enabled={false} until a person agrees to analytics, or when they opt out. While it is off the package queues and sends nothing.

TSX
<Analytics site="YOUR_SITE_ID" enabled={consent} />
PreviousDevelopment buildsNextApp Store and Play privacy

On this page

  • Visitors
  • Sessions
  • Sending and offline
  • Turn it off
View as Markdown