juice_analytics 0.1.0
juice_analytics: ^0.1.0 copied to clipboard
Event and screen tracking as a Juice bloc, with a consent gate and a fan-out sink seam.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 - 2026-05-28 #
Added #
- Initial release.
AnalyticsBloc— event + screen tracking, fanned out to one or more sinks, behind a consent gate.AnalyticsSink— vendor seam (logEvent/setScreen/setUser/flush). Ship a Firebase/Mixpanel/Segment adapter;ConsoleAnalyticsSinkandNoopAnalyticsSinkincluded.- Fan-out with isolation — a throwing sink can't break tracking for the rest.
- Consent-first — when disabled, events are dropped (counted), never buffered, so nothing leaks once consent is later granted.
- API —
log,screen,setUser,setConsent,flush. - Rebuild groups —
analytics:status,analytics:screen.