Talivia Docs
Talivia Docs
HomeDashboard
IntroductionInstallationTeamGetting updates
Mobile app analyticsReact Native and ExpoFlutterSwift and iOSNative Android and Kotlin
Integrations
AI agents and MCPllms.txtllms-full.txt
Mobile app analytics

Flutter

Install talivia_flutter and measure Flutter screens, events, and known users.

View Markdown

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_preferences

Initialize 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.

See Flutter analytics · View on pub.dev

React Native and Expo

Install @talivia/react-native and track native screens, events, and known users.

Swift and iOS

Add the Talivia Swift package to a native iOS app and track screens, events, and known users.