Expo analytics
Expo analytics with automatic route and interaction tracking
Riveora adds behavior analytics to Expo and Expo Router apps with a JavaScript SDK. ExpoRouterTracker records supported route changes and time on screen, while autocapture observes taps, rage taps, JavaScript errors and network problems.
The SDK works in Expo Go. Persistent AsyncStorage and expo-constants complete the setup; the optional screen-picture workflow is for your own development builds and never records end-user screens.
No end-user screen recordings or keystrokes. Consent is built in.
Included signals
What Riveora handles for you
- Expo Router screen changes, normalized dynamic routes and visible duration.
- Taps, rage taps, JavaScript errors and failed or slow requests.
- A development-only route list and optional screen pictures for tap maps.
- Offline event queuing when AsyncStorage is configured.
Explicit instrumentation
What your app still tells Riveora
- Read the app version with expo-constants and pass it to RiveoraProvider.
- Set consent only after your app has the required user choice or legal basis.
- Instrument onboarding, paywalls, purchases and custom product actions explicitly.
- Use aliases or ignore rules when raw route names are not suitable for analytics.
Verified setup
Expo Router setup with version and storage
This example uses the public exports from @riveora/react-native. Use a public project key, persistent storage, an explicit app version and the consent state appropriate for your app.
import { Stack } from 'expo-router';
import Constants from 'expo-constants';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { RiveoraProvider, AsyncStorageAdapter } from '@riveora/react-native';
import { ExpoRouterTracker } from '@riveora/react-native/expo-router';
const storage = new AsyncStorageAdapter(AsyncStorage);
export default function RootLayout() {
return (
<RiveoraProvider
projectKey="pk_your_project_key"
storage={storage}
appVersion={Constants.expoConfig?.version}
consent="granted"
>
<ExpoRouterTracker />
<Stack />
</RiveoraProvider>
);
}Expo Go, development builds and production builds
The analytics SDK is JavaScript and works in Expo Go. AsyncStorage and react-native-view-shot are already available there. In a custom development build, install their native modules and rebuild once; reloading Metro cannot add native code to an existing binary.
Screen pictures are optional and only taken on your own test device in development. Production builds send behavioral events after consent but never capture screen images. If view-shot is absent, analytics continues and only pictures are unavailable.
Route names that remain useful and private
Expo Router file patterns give stable names such as /product/:id rather than a different screen for every product. Unknown paths use the SDK’s path masking so identifiers and personal-looking segments are replaced.
Use screenAlias for product-friendly names and ignoreScreens for routes such as internal developer menus. In-screen tabs, sheets and modal content that do not change the route can call Riveora.screen() when they should be measured as a distinct screen.
FAQ
Questions developers ask
Does Riveora analytics work in Expo Go?
Yes. The SDK is JavaScript, and Expo Go includes AsyncStorage and view-shot. A custom development build must be rebuilt after adding native dependencies.
Does Expo Router screen tracking require manual calls?
Not for supported route changes when ExpoRouterTracker is mounted inside the provider. In-screen tabs, sheets or custom flows that do not change the route can call Riveora.screen().
How is the Expo app version detected?
It is not detected by Riveora. Install expo-constants and pass Constants.expoConfig?.version to the appVersion prop so version comparisons work.
Does Riveora record end-user screens or typed text?
No. It does not record video, screenshots of end users or keystrokes. Optional screen pictures come only from your own development builds. Text fields are excluded, personal-looking values are masked or dropped, and sensitive UI can be excluded with RiveoraIgnore.
Related Riveora guides
Start with real evidence
Find the friction that costs your app customers
Install the SDK, confirm events in Live events, then use Riveora’s journeys and problem list to decide what to fix.