analytics_hub 0.2.0 copy "analytics_hub: ^0.2.0" to clipboard
analytics_hub: ^0.2.0 copied to clipboard

A unified analytics abstraction for Dart/Flutter. Send events to multiple backends (Firebase, Mixpanel, etc.) through one API with typed e-commerce events and session support.

0.2.0 - 2026-02-23 #

Added #

  • New provider-targeting model via EventProvider<R, O> and EventOptions.
  • Per-provider overrides for LogEvent via LogEventOptions and LogEventOverrides.
  • Typed per-provider payload overrides for CustomLogEvent<T> and ECommerceEvent<T> through CustomLogEventOptions<T> and ECommerceEventOptions<T>.

Changed #

  • Renamed provider identity API from ProviderKey to ProviderIdentifier.
  • AnalyticsHub now routes events via Event.providers and EventProvider.identifier.
  • Extended public API documentation to cover new options and routing abstractions.

Breaking Changes #

  • Event.providerKeys was removed. Implement Event.providers instead: List<EventProvider<R, O>> get providers.
  • ProviderKey<R> was renamed to ProviderIdentifier<R>.
  • AnalytycsProvider constructor parameter and field were renamed from key to identifier.
  • Event<R> now requires options type parameter: Event<R, O extends EventOptions>.
  • LogEvent now extends Event<LogEventResolver, LogEventOptions>.
  • CustomLogEvent<T> moved to custom_log_event.dart and now extends Event<CustomLogEventResolver<T>, CustomLogEventOptions<T>>.
  • ECommerceEvent now requires a payload type: ECommerceEvent<T> extends Event<ECommerceEventResolver, ECommerceEventOptions<T>>.

0.1.0 - 2026-02-11 #

Added #

  • Public API documentation (public_member_api_docs) for all core types: AnalyticsHub, events, providers, session, and resolvers.
  • Extended e-commerce event model with typed events and data classes: AddToCart, AddToWishlist, ViewCart, AddPaymentInfo, AddShippingInfo, BeginCheckout, Purchase, RemoveFromCart, SelectItem, ViewItem, ViewItemList, ViewPromotion, Refund, and ECommerceEventItem.

0.0.1 - 2026-02-10 #

Added #

  • Initial implementation of AnalyticsHub to fan-out events to multiple analytics providers.
  • Core event hierarchy: Event, LogEvent, CustomLogEvent<T>, ECommerceEvent and SelectPromotionECommerceEvent.
  • Provider abstraction: AnalytycsProvider<R>, ProviderKey<R>, HubSessionDelegate and Session for centralized session management.
0
likes
0
points
468
downloads

Publisher

unverified uploader

Weekly Downloads

A unified analytics abstraction for Dart/Flutter. Send events to multiple backends (Firebase, Mixpanel, etc.) through one API with typed e-commerce events and session support.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

logging

More

Packages that depend on analytics_hub