Browse docs

Explore by section, then jump directly into a page.

SDKs

Pick your platform and get up and running in minutes. Every SDK shares the same event model and core APIs.

Pick your platform

Quick start (Web)

Three lines to start tracking. Replace YOUR_APP_ID with the UUID from your Flash dashboard.

InstallTerminal
npm install @flash-analytics/web@2.2.3
InitializeTypeScript
import { FlashAnalytics } from '@flash-analytics/web';

const analytics = new FlashAnalytics({
  appId: 'YOUR_APP_ID',
  capturePageViews: true,
  captureErrors: true,
});
TrackTypeScript
analytics.identify({ profileId: 'user_123', email: 'user@example.com' });
analytics.track('signup_completed', { plan: 'pro' });

Shared APIs across all SDKs

Every SDK — browser, mobile, and server — exposes the same core methods.

track()Send a named event with optional properties
identify()Attach a stable user ID and profile data
setGlobalProperties()Merge properties into every subsequent event
revenue()Record a purchase or subscription charge
increment() / decrement()Adjust a numeric user property
getSession()Read current session ID and estimated expiry
onSessionUpdatedCallback option for restored, created, or refreshed sessions
deliveryStrategyEnable batching with size, timeout, and fallback controls
fetchRemoteConfig()Pull feature flags and config values
assignExperiment()Get or create an A/B test assignment

Current versions

PackageVersionPlatform
@flash-analytics/webv2.2.3Browser
@flash-analytics/nextjsv2.2.3React
@flash-analytics/astrov2.2.3Browser
@flash-analytics/sdkv2.2.3Server
@flash-analytics/expressv2.1.8Server
@flash-analytics/react-nativev2.1.19Mobile
app.flashanalytics:flashanalytics-kotlinv1.1.4Mobile
FlashAnalytics (SwiftPM)v1.1.1Mobile