dataxamas 1.1.0
dataxamas: ^1.1.0 copied to clipboard
Flutter SDK for the Dataxamas analytics platform — screen views, custom events, heat maps, session replay, logs and error tracking.
dataxamas #
Flutter SDK for Dataxamas: screen views, custom events, heat maps, session replay, 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();
// Heat map, session replay and scroll depth; text fields are masked in the replay
runApp(
DataxamasWidget(
client: dataxamas,
child: 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, replay and heat map, logs, exceptions) and the API reference live at dataxamas.com/docs/flutter.