Set up analytics in Flutter apps
firebase-analyticsskillsetup L2★548
evanca/flutter-ai-rules ↗What it does
Set up Firebase Analytics in Flutter with event logging
Best for
Implementing analytics tracking for user behavior, screen views, and conversion funnels in production Flutter apps.
Inputs
- · Flutter project
- · Firebase config
- · Custom event names and parameters
Outputs
- · Analytics initialized
- · Screen view tracking active
- · Event logging code examples
Requires
- · Firebase SDK
- · Flutter firebase_analytics package
- · GoRouter or Navigator
Preconditions
- · Firebase project initialized
- · iOS/Android native config applied
- · IDFA consideration for iOS (app store review)
Failure modes
- · IDFA questions on App Store if not using FirebaseAnalyticsWithoutAdIdSupport
- · Automatic events differ by platform
- · Custom parameter names must be <40 chars and alphanumeric
- · Event names case-sensitive, max 40 chars
Trust signals
- · Code examples for logSelectContent, custom events, and user properties
- · DebugView console verification steps
- · Parameter naming constraints explicitly documented
- · Event limits (500 types, 25 parameters/event)