flutter_umami_analytics 1.0.1
flutter_umami_analytics: ^1.0.1 copied to clipboard
Flutter client for Umami Analytics. Track pageviews, events, and sessions offline with auto-route tracking, persistent device ID, and opt-in REST API.
Changelog #
1.0.1 #
- Fix: per-call
UmamiConfigOverrides(websiteId,hostname,language,userId) now applied to the outgoing payload intrackPageView,trackEvent, andidentify. Previously the merged config was computed but the payload was still built from the base config, so overrides had no effect on those fields. - Docs: added dartdoc (
///) to all public API symbols acrossdomain,application,infrastructure, andfactory.dart. - Docs: added English documentation set under
doc/en/(initialization, queue, tracking, observer, identify, overrides, device, logging, API client, advanced) and refreshed Spanish docs underdoc/es/.
1.0.0 #
- Initial release.
- Pageview and event tracking with automatic device info (locale, screen, User-Agent per platform).
- Offline queue strategies:
disabled,inMemory,persisted(SQLite with TTL, auto-flush). - Persistent device ID via
flutter_secure_storage, namespaced per instance. UmamiNavigatorObserverfor auto-tracking route pushes, replaces, and pops (routeFilterandrouteNameMapperhooks).- Multi-instance support with isolated SQLite queue and secure storage keys per
instanceName. - Optional REST API client (
enableApi): login, websites, stats, pageviews, metrics, active visitors, events, sessions, teams, users. - Per-call config overrides (
websiteId,hostname,language,userId). - One-time
firstReferrerconsumed by the firsttrackPageView. - Lazy
sessionIdgenerated on firstidentify(). - Configurable
UmamiLogger(six levels, custom sink callback). - Hexagonal architecture: pure-Dart
domainwith swappableportadapters.