SDK Overview
The Mobana React Native SDK provides attribution, conversion tracking, and in-app flows for mobile apps.
Introduction#
The Mobana SDK is a lightweight library that enables:
- • Attribution — Track where users come from (campaigns, ads, referrals)
- • Conversion Tracking — Measure key events like signups, purchases, and subscriptions
- • In-App Flows — Display onboarding, paywalls, and surveys with native access
Architecture#
The SDK consists of a singleton class (Mobana) and an optional React provider (MobanaProvider) for displaying flows:
- Mobana — Core class with static methods for initialization, attribution lookup, and conversion tracking. Works with any React Native architecture.
- MobanaProvider — React context provider that renders flows using a WebView overlay. Required only if you're using flows.
Available Methods#
init()
SetupInitialize the SDK with your app ID. Call once on app start.
getAttribution()
AttributionRetrieve attribution data for the current device.
trackConversion()
TrackingSend conversion events with revenue and metadata.
startFlow()
FlowsDisplay an in-app flow (onboarding, paywall, survey).
prefetchFlow()
FlowsPreload a flow for instant display.
setEnabled()
PrivacyEnable or disable SDK tracking (for GDPR compliance).
reset()
PrivacyClear all stored data and generate a new install ID.
MobanaProvider
ReactReact component that enables flow display in your app.
Typical Usage#
A typical integration involves four steps:
- Initialize — Call
init()on app start with your app ID - Get attribution — Call
getAttribution()to retrieve campaign, source, and referral data - Track conversions — Call
trackConversion()when users complete key actions (signup, purchase, etc.) - Launch flows — Wrap your app in
MobanaProviderand callstartFlow()to display flows
New to Mobana? Check out the Quick Start guide for a step-by-step integration walkthrough.