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#

Typical Usage#

A typical integration involves four steps:

  1. Initialize — Call init() on app start with your app ID
  2. Get attribution — Call getAttribution() to retrieve campaign, source, and referral data
  3. Track conversions — Call trackConversion() when users complete key actions (signup, purchase, etc.)
  4. Launch flows — Wrap your app in MobanaProvider and call startFlow() to display flows
Quick Start

New to Mobana? Check out the Quick Start guide for a step-by-step integration walkthrough.