dataxamas 1.0.0
dataxamas: ^1.0.0 copied to clipboard
Flutter SDK for the Dataxamas analytics platform — screen views, custom events, logs and error tracking.
dataxamas #
Flutter SDK for Dataxamas: screen views, custom events, logs and error tracking for APP projects.
Beta: the API may still change between versions. Pin the version in your
pubspec.yaml.
Install #
flutter pub add dataxamas
Usage #
Create an APP project in the Dataxamas dashboard and copy its ingest API key.
import 'package:dataxamas/dataxamas.dart';
import 'package:flutter/material.dart';
final dataxamas = Dataxamas(apiKey: 'YOUR_API_KEY_HERE');
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
// Screens, app version, OS and device; events queue offline and retry later
await dataxamas.tracking.start();
runApp(
MaterialApp(
navigatorObservers: [dataxamas.tracking.observer],
home: const HomeScreen(),
),
);
}
// Custom events, from anywhere in the app:
// dataxamas.tracking.track('signup', {'plan': 'pro'});
Documentation #
Guides (go_router, UTM, logs, exceptions) and the API reference live at dataxamas.com/docs/flutter.