analytics
2.0.3, released 3 years ago by surf.ru
Unifies working with multiple analytic services using custom strategies.
What it does
Provides an interface and base classes to unify how analytical actions are sent to various analytic services. It introduces concepts like AnalyticAction, AnalyticStrategy, and AnalyticService to coordinate event tracking across different platforms.
AI-written summary of version 2.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a unified interface to send tracking events to multiple analytics providers.
- You want to organize analytics logic into clear strategy classes.
Skip it when
- You are looking for a package that comes with pre-integrated analytics SDKs out of the box.
- You only use a single analytics provider and prefer using its official SDK directly.
Strengths
- Clean architecture separating analytic actions from delivery strategies.
- Easily extendable to support any custom analytics API.
Weaknesses
- Requires writing custom implementation strategies for each analytics service you use.
- Does not include pre-built integrations for popular analytics providers.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
not documented
class MyAnalyticAction implements AnalyticAction {
final String key;
final String value;
MyAnalyticAction(this.key, this.value);
}
final analyticService = AnalyticService.withStrategies({
MyAnalyticStrategy(analytics),
});
analyticService.performAction(ButtonPressedAction());Alternatives
Packages that do the same job and could replace analytics.
- ambilytics
Google Analytics wrapper for all Flutter platforms including Windows and Linux
57Compare - telemetrydecksdk
Flutter SDK for TelemetryDeck, a privacy-conscious analytics service for apps and websites
73Compare - performance
Performance overlay package for Flutter apps that works on web.
50Compare
Works with
Packages commonly used together with analytics: ones it builds on, ones built on it, and its own family.