Agent skill

Firebase Analytics

by evanca in evanca/flutter-ai-rules

A skill your agent uses when logging analytics events, setting user properties, configuring default event parameters, building funnels, or adding screen-view tracking.

MITAuto-check passedMobile

Install Firebase Analytics

skills CLI
$ npx skills add evanca/flutter-ai-rules --skill firebase-analytics -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install evanca/flutter-ai-rules firebase-analytics --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/firebase-analytics .claude/skills/firebase-analytics && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
firebase-analytics
GitHub stars
647
Token cost
~1.4k tokens
SKILL.md length
509 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when logging analytics events, setting user properties, configuring default event parameters, building funnels, or adding screen-view tracking.

  • Works in 5 steps: Setup and Configuration → Event Logging → Parameters and Properties → …
  • Logging analytics events
  • SKILL.md covers When to Use, 1. Setup and Configuration, 2. Event Logging and 3. Parameters and Properties, plus 3 more sections
  • Calls flutter and adb

What it does

Firebase Analytics is an agent skill from evanca/flutter-ai-rules. Use when logging analytics events, setting user properties, configuring default event parameters, building funnels, or adding screen-view tracking.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile. It works with Firebase and Flutter. The repository describes itself as: Flutter AI Skills and Rules for Claude, Codex, Cursor, and Other AI-Powered IDEs. The licence is MIT.

When your agent uses it

  • Logging analytics events
  • Setting user properties
  • Configuring default event parameters
  • Building funnels

Example prompts

  • “/firebase-analytics”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Setup and Configuration
  2. Event Logging
  3. Parameters and Properties
  4. User Properties
  5. Best Practices

What it can do on your machine

Read from SKILL.md and the folder at commit 7b9cce2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • flutter
    • adb

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Firebase Analytics loads about 1.4k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 509 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from evanca/flutter-ai-rules at commit 7b9cce2, republished under its MIT licence (© evanca). 509 words, ~1,396 tokens.

Download SKILL.mdSave it as .claude/skills/firebase-analytics/SKILL.md (or your agent's skills folder).
name
firebase-analytics
description
Use when logging analytics events, setting user properties, configuring default event parameters, building funnels, or adding screen-view tracking.
license
MIT

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 Screen Tracking
dart
MaterialApp(
  navigatorObservers: [
    FirebaseAnalyticsObserver(analytics: FirebaseAnalytics.instance),
  ],
);

For GoRouter, log screen views manually on route changes:

dart
GoRouter(
  observers: [FirebaseAnalyticsObserver(analytics: FirebaseAnalytics.instance)],
);
Verification Checklist
  1. Confirm Firebase.initializeApp() completes before accessing FirebaseAnalytics.instance.
  2. Run the app and check the Firebase DebugView console for incoming events.
  3. Confirm automatic events (first_open, session_start) appear without extra code.

2. Event Logging

Use predefined event methods when possible for maximum detail in reports and access to future Google Analytics features:

dart
await FirebaseAnalytics.instance.logSelectContent(
  contentType: "image",
  itemId: itemId,
);

Use the general logEvent() method for both predefined and custom events:

dart
await FirebaseAnalytics.instance.logEvent(
  name: "select_content",
  parameters: {
    "content_type": "image",
    "item_id": itemId,
  },
);
Custom Event Example — E-commerce Add-to-Cart
dart
Future<void> logAddToCart(String productId, String productName, double price) async {
  await FirebaseAnalytics.instance.logEvent(
    name: 'add_to_cart',
    parameters: {
      'product_id': productId,
      'product_name': productName,
      'price': price,
      'currency': 'USD',
    },
  );
}
  • Event names are case-sensitive — names differing only in case create two distinct events.
  • Up to 500 different event types with no limit on total event volume.
  • Event names must start with an alphabetic character, contain only alphanumeric characters and underscores, and be no longer than 40 characters.

Show full SKILL.md (227 more words)Show less

3. Parameters and Properties

  • Parameter names: up to 40 characters, must start with an alphabetic character, contain only alphanumeric characters and underscores.
  • String parameter values: up to 100 characters.
  • The prefixes firebase_, google_, and ga_ are reserved — do not use them for parameter names.
  • Up to 25 custom parameters per event.
  • Register custom parameters in the Analytics console to use them as dimensions or metrics in reports.

Set default parameters for all future events (not supported on web):

dart
await FirebaseAnalytics.instance.setDefaultEventParameters({
  'app_version': '1.2.3',
  'environment': 'production',
});

Clear a default parameter by setting it to null.


4. User Properties

dart
await FirebaseAnalytics.instance.setUserProperty(
  name: 'favorite_food',
  value: favoriteFood,
);

Set the user ID to correlate events across devices:

dart
await FirebaseAnalytics.instance.setUserId(id: 'user_12345');
  • Create custom definitions for user properties in the Analytics console before using them.
  • Up to 25 custom user properties per project.
  • Use user properties for audience segmentation, report filtering, or A/B test targeting.

5. Best Practices

  • Request necessary permissions before collecting user data, especially on platforms with strict privacy controls.
  • Never log sensitive or personally identifiable information in events or user properties.
  • Use consistent naming conventions (snake_case) for custom events and parameters.
  • Group related events to track user flows and conversion funnels.
  • Use DebugView in the Firebase console during development — enable it on a physical device with:
    • Android: adb shell setprop debug.firebase.analytics.app <package_name>
    • iOS: Add -FIRDebugEnabled to scheme arguments in Xcode.
  • Test analytics implementation before deploying to production by confirming events appear in DebugView.

References

© evanca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/firebase-analytics of evanca/flutter-ai-rules.

Open the folder on GitHubat commit 7b9cce2

Compare with similar skills

Firebase Analytics next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Firebase Analytics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Firebase Analytics this skillevanca/flutter-ai-rules647—~1.4kAutomated safety check: PassMIT
Cometchat Flutter V6 Pushcometchat/cometchat-skills129—~1.4kAutomated safety check: PassMIT
Git Worktree Setupk8zdev/k8z155—~930Automated safety check: PassNone
Web3authWeb3Auth/web3auth-examples144—~1.4kAutomated safety check: PassMIT
Retrieving Developer Knowledgegoogle/skills21k—~2kAutomated safety check: PassApache-2.0
Apple Designvrcm-team/VRCM1791 repos~6.2kAutomated safety check: PassMIT

Similar skills

  • Cometchat Flutter V6 Push

    cometchat/cometchat-skills

    Add push notifications to a Flutter app with CometChat — FCM on Android, FCM/APNs on iOS, registered through CometChatNotifications with the Dashboard provider as the sender.

    129 GitHub stars~1.4k tokensUpdated 2 days ago
    MobileAuto-check passed
  • Automate git worktree creation and copy private files (not tracked in git) to new workdirs.

    155 GitHub stars~930 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Web3auth

    Web3Auth/web3auth-examples

    Integrates MetaMask Embedded Wallets (Web3Auth) for non-custodial wallets via social login or custom JWT (Firebase, Auth0, Cognito).

    144 GitHub stars~1.4k tokensUpdated 4 days ago
    Backend & APIsAuto-check passed
  • Official

    Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome, Web, Flutter, Go, Firebase, and other Google developer platforms.

    21k GitHub stars~2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Apple Design

    vrcm-team/VRCM

    Cross-platform UI/UX design reviewer grounded in Apple's Human Interface Guidelines (122 pages pulled from developer.apple.com, including 57 component pages) plus a design-craft lens for…

    179 GitHub starsUsed in 1 repo~6.2k tokens
    MobileAuto-check passed
  • Add, complete, or audit a locale across a Flutter application's ARB catalogs and a localized Docusaurus manual, including generated localization code, locale selectors, native platform declarations…

    1.2k GitHub stars~1.2k tokensUpdated today
    MobileAuto-check passed

More from evanca/flutter-ai-rules

All 37 skills in this repo
  • Code Review

    evanca/flutter-ai-rules

    A skill your agent uses when asked to review a PR, MR, branch, or diff, audit changed files, or check code quality.

    647 GitHub stars~2.4k tokensUpdated 23 days ago
    Auto-check passed
  • Developing Genkit Dart

    evanca/flutter-ai-rules

    A skill your agent uses when building AI agents in Dart, implementing Genkit flows or tools, integrating LLMs into Dart or Flutter applications, or using Genkit Dart plugins.

    647 GitHub stars~961 tokensUpdated 23 days ago
    Auto-check passed
  • Generate Images With Firebase AI

    evanca/flutter-ai-rules

    A skill your agent uses when generating or editing images from Flutter/Dart with Firebase AI Logic and a Gemini image model (Nano Banana), making the first call work, choosing Gemini Developer API…

    647 GitHub stars~2.3k tokensUpdated 23 days ago
    Auto-check passed
  • Flutter Use Column Row First

    evanca/flutter-ai-rules

    A skill your agent uses when building any Flutter screen or component to choose responsive Row, Column, Expanded, Flexible, and Spacer layouts before fixed-size or coordinate-based alternatives.

    647 GitHub stars~1.3k tokensUpdated 23 days ago
    Auto-check passed
  • Architecture Feature First

    evanca/flutter-ai-rules

    A skill your agent uses when creating a feature, designing folder structure, adding repositories/services/view models, wiring dependency injection, or deciding which layer owns logic.

    647 GitHub stars~1.9k tokensUpdated 23 days ago
    Auto-check passed
  • Bloc

    evanca/flutter-ai-rules

    A skill your agent uses when creating a Cubit or Bloc, modeling state with sealed classes or status enums, wiring BlocBuilder/BlocListener/BlocProvider, writing bloc tests, or choosing between Cubit…

    647 GitHub stars~2.8k tokensUpdated 23 days ago
    Auto-check passed

Works with

Categories

Questions about Firebase Analytics

What does Firebase Analytics do?

A skill your agent uses when logging analytics events, setting user properties, configuring default event parameters, building funnels, or adding screen-view tracking. Firebase Analytics is an agent skill from evanca/flutter-ai-rules. Use when logging analytics events, setting user properties, configuring default event parameters, building funnels, or adding screen-view tracking.

When should I use Firebase Analytics?

Firebase Analytics fits situations like: logging analytics events; setting user properties; configuring default event parameters; building funnels.

How do I install Firebase Analytics in Claude Code?

Run `npx skills add evanca/flutter-ai-rules --skill firebase-analytics -a claude-code`. Or copy the skill folder (skills/firebase-analytics in evanca/flutter-ai-rules) into .claude/skills/firebase-analytics in your project. Claude Code loads it when a task matches its description.

How do I install Firebase Analytics in Codex?

Run `npx skills add evanca/flutter-ai-rules --skill firebase-analytics -a codex`. Or copy the skill folder (skills/firebase-analytics in evanca/flutter-ai-rules) into .agents/skills/firebase-analytics in your project. Codex loads it when a task matches its description.

Can I use Firebase Analytics in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add evanca/flutter-ai-rules --skill firebase-analytics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/firebase-analytics, .gemini/skills/firebase-analytics, .github/skills/firebase-analytics and .opencode/skills/firebase-analytics in your project.

What does Firebase Analytics need to run?

Going by SKILL.md and its folder, Firebase Analytics needs the command-line tools its instructions call (flutter and adb).

Does Firebase Analytics access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Firebase Analytics safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Firebase Analytics use?

Firebase Analytics is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Firebase Analytics use?

About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Firebase Analytics?

Skills that share tags, products or a category with Firebase Analytics: Cometchat Flutter V6 Push (cometchat/cometchat-skills, 129 stars), Git Worktree Setup (k8zdev/k8z, 155 stars), Web3auth (Web3Auth/web3auth-examples, 144 stars) and Retrieving Developer Knowledge (google/skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Firebase Analytics?

evanca (a GitHub user) maintains it in evanca/flutter-ai-rules, which has 647 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on September 14, 2026.

Source: evanca/flutter-ai-rules on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.