firebase-analytics
Use when logging analytics events, setting user properties, configuring default event parameters, building funnels, or adding screen-view tracking.
npx skills add evanca/flutter-ai-rules --skill firebase-analytics --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Firebase Analytics Skill This skill defines how to correctly implement Firebase Analytics in Flutter applications, covering setup, event logging, user properties, and data collection best practices. ## When to Use Use this skill when: * Setting up and configuring Firebase Analytics in a Flutter project. * Logging predefined or custom analytics events. * Setting user properties or default event parameters. * Implementing screen view tracking with GoRouter or Navigator observers. * Building conversion funnels or tracking user flows. --- ## 1. Setup and Configuration ``` flutter pub add firebase_analytics flutter run ``` ```dart import 'package:firebase_analytics/firebase_analytics.dart'; // After Firebase.initializeApp(): FirebaseAnalytics analytics = FirebaseAnalytics.instance; ``` - Initialize Firebase before using any Firebase Analytics features. - Analytics **automatically logs** some events and user properties — no additional code needed for those. - On iOS, if your app does not use the IDFA (Advertising Identifier), use the IDFA-free Analytics dependency (`FirebaseAnalyticsCore` under Swift Package Manager, or `FirebaseAnalytics/Core` under CocoaPods) instead of the default `
- When to Use
- 1. Setup and Configuration
- Add Navigator Observer for Automatic Screen Tracking
- Verification Checklist
- 2. Event Logging
- Custom Event Example — E-commerce Add-to-Cart
- 3. Parameters and Properties
- 4. User Properties
- 5. Best Practices
- References
What does the firebase-analytics skill do?
Use when logging analytics events, setting user properties, configuring default event parameters, building funnels, or adding screen-view tracking.
How do I install it?
Run `npx skills add evanca/flutter-ai-rules --skill firebase-analytics --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From evanca/flutter-ai-rules, a repository with 604 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
