One Analytics facade
track, identify, setUserProperties and setDefaultParams run in call order through one facade, and a driver failure is logged, never thrown into UI flow.
-
Team facts go in
setDefaultParams, which replaces the set and rides on every event - A call that breaks a GA4 limit fails an assert in debug and is dropped in release
Future<void> afterSignIn(String userUuid, String teamPlan) async {
await Analytics.identify(userUuid);
await Analytics.setDefaultParams({'team_plan': teamPlan});
await Analytics.track('monitor_created', {'monitor_type': 'http'});
}