Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Flutter
User identification, event tracking, and core SDK features for Flutter.
// Identify user with ID only Zixflow.instance.identify(userId: 'user@example.com'); // Identify user with additional attributes Zixflow.instance.identify( userId: 'user@example.com', traits: { 'first_name': 'John', 'last_name': 'Doe', 'email': 'user@example.com', 'plan': 'premium', 'created_at': DateTime.now().toIso8601String(), }, );
// Simple event Zixflow.instance.track(name: 'button_clicked'); // Event with properties Zixflow.instance.track( name: 'purchase_completed', properties: { 'product_id': '123', 'product_name': 'Widget', 'price': 29.99, 'currency': 'USD', }, );
// Manual screen tracking Zixflow.instance.screen( title: 'Product Detail', properties: { 'product_id': '123', 'category': 'Electronics', }, );
screenViewUse
final config = ZixflowConfig( apiKey: 'YOUR_API_KEY', screenViewUse: ScreenView.all, // Track all screens automatically );
// Set profile attributes Zixflow.instance.setProfileAttributes( attributes: { 'age': 30, 'gender': 'male', 'subscription_status': 'active', 'preferences': {'notifications': true}, }, );
// Set device attributes Zixflow.instance.setDeviceAttributes( attributes: { 'app_theme': 'dark', 'notifications_enabled': true, 'preferred_language': 'en', }, );
// Clear identified user Zixflow.instance.clearIdentify();
Zixflow.instance.registerDeviceToken(deviceToken: 'YOUR_DEVICE_TOKEN');