mautic_tracking_api 1.0.0 mautic_tracking_api: ^1.0.0 copied to clipboard
API to Monitoring and Tracking Users using Mautic for Dart and Flutter
import 'package:mautic_tracking_api/mautic_tracking_api.dart';
void main() async {
// Start Tracking
var m = MauticTracking(
"https://mkt.mymautic.com",
appName: "MyApp",
email: "contact@email.com",
appVersion: '1.0.0',
appBundleName: 'com.mydomain.myapp',
);
/// Track App Start
await m.trackAppStart();
/// Track App Screen
m.trackScreen("main", "Main Page");
/// Track App Event
m.trackEvent('click', 'Click Get Start Button', 'home', 'Home Page');
/// Add Contact Tag
m.addTag({'a', 'b'});
/// Remove Contact Tag
m.removeTag({'a', 'b'});
}