Many products have a website that wins the customer and an app where they pay or use the product. Reveata's React Native SDK puts both in one report, so a funnel can start at your pricing page and end at a purchase in the app.
What you get
- Screens as pages. With Expo Router, one hook in the root layout; with React Navigation, the container ref. Route names are recorded, never route parameters, and screens can be renamed, grouped or skipped.
- Custom events as goals, with the same naming rules as on the website and up to 20 string properties.
- Identify with the same
userIdas your website, so funnels count a person once across web and app. - Revenue links:
revenuelinks the user to the payment your provider reports, by transaction id or email. - Offline support. Events are queued (up to 1,000), batched (up to 50) and retried with a growing delay. Events older than 7 days are not recorded.
- A Platform filter (Website or App) on the dashboard, in segments, exports and the API.
How to install it
- Install
@reveata/react-native. AsyncStorage is optional but recommended: it keeps the visitor id and queued events across restarts. With Expo, app details are read fromexpo-applicationandexpo-devicewhen installed. - Call
initonce, as early as possible, with your website's tracking id and your Reveata address. Calls made beforeinitare kept. - Add screen tracking for Expo Router or React Navigation.
Full options are in the React Native guide. Expo itself is documented at docs.expo.dev (opens in a new tab).
How app payments are matched
| How the app takes money | How it is linked |
|---|---|
| Stripe PaymentIntent from your server | Send Reveata.metadata() and put it in the PaymentIntent metadata (Stripe Elements analytics) |
| App Store or Google Play purchase | Send it from your server with the Payments API and Reveata.getVisitorId() |
| Signed-in users | Identify with the same userId or email as on the website |
From website to app
An "Open in the app" link can carry the website visitor's token: reveata.appLink(url) on the website adds it, and the SDK reads it when the link opens the app within 10 minutes. The app then continues as the same visitor, signed in or not, and campaign parameters on the link are credited to the app visit.