Mobile app analytics
Flutter
Install talivia_flutter and measure Flutter screens, events, and known users.
talivia_flutter supports Flutter apps on iOS and Android. It sends native app activity to the Talivia collector without a private API key in the app.
Install
flutter pub add talivia_flutter
flutter pub add shared_preferencesInitialize and track
import 'dart:io';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:talivia_flutter/talivia_flutter.dart';
final analytics = Talivia(
websiteId: 'YOUR_WEBSITE_UUID',
platform: Platform.isIOS ? 'ios' : 'android',
preferences: await SharedPreferences.getInstance(),
hostname: 'example.com',
);
await analytics.screen('Home');
await analytics.track('signup_completed', {'plan': 'pro'});
await analytics.identify('your-stable-user-id');
// On logout: await analytics.reset();Call screen() when your Navigator or Router changes. Record events only after the relevant product action completes. Initialize when your app's consent and privacy settings permit collection.
Use the same Website ID, hostname, and stable account ID as your web tracker to inspect both sources in one workspace. Current funnels remain visitor-based across devices. Offline retries are memory-only, capped at 100, and lost when the app exits. App-store purchases and campaign attribution need separate trusted integrations.