Integration

Product analytics for Flutter

Pug ships a first-class Flutter SDK in Dart. Initialise it once and auto-tracking begins; typed methods cover the well-known events, with custom properties in extras.

Uses the Pug Flutter SDK — Pug’s one SDK for Flutter.

flutter pub add pug_flutter_sdk
import 'package:pug_flutter_sdk/pug_flutter_sdk.dart';

await Pug.init('your-project-id', const PugOptions(apiKey: 'pub_your_key'));

// Auto-tracking starts immediately. Identify users on sign-in:
await Pug.identify('user_123', traits: {'plan': 'pro'});

// Typed methods for well-known events (custom props go in extras):
Pug.track.signup(extras: {'plan': 'pro'});
What you get

Product analytics in your Flutter app

  • Auto-tracking starts at init() — screen views and lifecycle, no per-event wiring
  • Typed methods for well-known events; custom properties go in extras
  • identify() ties events to a person across sessions and devices
  • The same insight types as web: trends, funnels, retention, flows, and profiles
FAQ

Pug + Flutter — common questions

Is the Flutter SDK production-ready?

The Flutter SDK is one of Pug’s three shipping SDKs (alongside Web and Node). It initialises in one call, auto-tracks lifecycle, and exposes typed methods for well-known events.

What about native Android, iOS, or React Native?

Native Android, iOS, and React Native SDKs are in active development and landing by launch. Today, mobile is covered by the Flutter SDK; for native apps you can send events to the same backend in the meantime.

Can I self-host the backend the app talks to?

Yes — Pug is AGPL-3.0 and self-hostable. Point the Flutter SDK at your own endpoint, or use the free cloud during open beta.

Add Pug to your Flutter app.

Open-source product analytics with unified profiles. Self-host under AGPL-3.0, or use the free cloud during open beta.