Browse docs

Jump to core topics without leaving the page.

SDKs Overview

Choose the right FlashAnalytics SDK for your project with developer-first guidance and examples.

FlashAnalytics offers SDKs for web, mobile, and server environments. Each SDK shares a consistent event model so your team can ship tracking quickly and keep the data clean across products.

Pick the right SDK

  • Static sites or simple web apps - Script Tag or Web SDK
  • Next.js - Next.js SDK for client and server tracking
  • React SPA - React SDK with route tracking
  • Server-side events - Python, Rust, Ruby, or Node
  • Mobile apps - React Native, Swift, or Kotlin

Common setup steps

  1. Install the SDK or add the script tag
  2. Initialize with your client ID (and secret for server SDKs)
  3. Track key events and verify in the dashboard

Example event tracking

All SDKs share the same event naming and property conventions. Start with meaningful, business-aligned events.

fa.track('signup_completed', {
  plan: 'pro',
  source: 'pricing_page',
  trial: true,
});

Web SDKs

  • Script Tag / JavaScript - Fastest setup with optional TypeScript support
  • React - SPA tracking with route change hooks
  • Next.js - Client and server tracking for App Router and Pages Router

Server SDKs

  • Python - Django, Flask, FastAPI, and background jobs
  • Rust - High-performance services and pipelines
  • Ruby - Rails apps and job processors

Mobile SDKs

Next steps

Start with installation and event tracking, then move to identity and revenue tracking for deeper insights.