engine_tracking 1.6.0
SDKflutter
Platformandroidios
Plugin Flutter para tracking, analytics, crashlytics e logs do Engine Framework
Engine Tracking Example
A comprehensive example demonstrating the engine_tracking package features.
Features Demonstrated
This example app showcases:
- Analytics Integration: Event tracking, user properties, and page views
- Bug Tracking: Error recording, logging, and crash reporting
- Service Status: Real-time display of enabled/disabled services
- User Interaction: Counter, navigation, and property updates
- Error Simulation: Test error recording functionality
Getting Started
-
Clone the repository
-
Navigate to the example directory
-
Install dependencies:
flutter pub get -
Configure Firebase (optional):
- Add your
google-services.json(Android) orGoogleService-Info.plist(iOS) - Update Firebase project configuration
- Add your
-
Configure Faro (optional):
- Update the Faro endpoint and API key in
main.dart
- Update the Faro endpoint and API key in
-
Run the app:
flutter run
Configuration
The example initializes both Analytics and Bug Tracking with sample configurations:
// Configure Analytics
final analyticsModel = EngineAnalyticsModel(
firebaseAnalyticsConfig: const EngineFirebaseAnalyticsConfig(enabled: true),
faroConfig: const EngineFaroConfig(
enabled: true,
endpoint: 'https://faro-collector.example.com/collect',
appName: 'EngineTrackingExample',
appVersion: '1.0.0',
environment: 'development',
apiKey: 'your-faro-api-key',
),
);
What You Can Test
- Increment Counter: Logs analytics events and user interactions
- Simulate Error: Tests error recording and stack trace logging
- Set User Property: Updates user properties in both services
- Navigate: Demonstrates page tracking and navigation events
- Service Status: View real-time status of all tracking services
Notes
- Firebase services require proper configuration to work
- Faro integration needs valid endpoint and API key
- The app will still function with services disabled
- Check the console for logged events and errors