firebase-analytics

Featured

Use when logging analytics events, setting user properties, configuring default event parameters, building funnels, or adding screen-view tracking.

API & Backend 619 stars 60 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
93
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 `FirebaseAnalytics` dependency to avoid App Store review questions about advertising identifiers: - **Swift Package Manager:** set `FIREBASE_ANALYTICS_WITHOUT_ADID=true` when building (`FIREBASE_ANALYTICS_WITHOUT_ADID=true flutter build ios`). ### Add Navigator Observer for Automatic Scr...

Details

Author
evanca
Repository
evanca/flutter-ai-rules
Created
1 years ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category