Comprehensive guide for Google Analytics for Firebase (GA4F), including base setup, SDK initialization, screen tracking, and event logging on Android and iOS. Use this skill when setting up Google Analytics, adding the SDK, or logging analytics events. Don't use for standalone CLI login or project/config file downloads without Analytics (use firebase-basics), or for Crashlytics, Remote Config, Auth, Firestore, Hosting, App Hosting, or Data Connect.
Written by Firebase and published in firebase/agent-skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
This skill provides a complete guide for getting started with Google Analytics for Firebase (GA4F) on Android or iOS. It covers base dependency setup, configuration file placement, initialization, screen tracking, and real-time event verification.
An active Firebase project
linked to a Google Analytics property.
See the firebase-basics skill for references on project initialization, CLI
login, and downloading app configuration files (google-services.json or
GoogleService-Info.plist).
To learn how to set up Google Analytics for Firebase in your application code and verify events in real time with DebugView, choose your platform:
Google Analytics for Firebase automatically logs some events and user properties; you can also define custom events and properties.
To learn how to customize event logging and configure advanced behaviors, consult the documentation for your platform.
Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /firebase-analytics in Claude Code or $firebase-analytics in Codex.
The description says when to use it:
Use this skill when setting up Google Analytics, adding the SDK, or logging analytics events.
Copy the firebase-analytics folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/firebase/agent-skills.git /tmp/firebase-agent-skills
mkdir -p .claude/skills
cp -r /tmp/firebase-agent-skills/skills/firebase-analytics .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if firebase-analytics does not appear.
git clone --depth 1 https://github.com/firebase/agent-skills.git /tmp/firebase-agent-skills
mkdir -p .agents/skills
cp -r /tmp/firebase-agent-skills/skills/firebase-analytics .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for firebase-analytics and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
firebase-analytics ships 5 files, 73.6 KB in total. Select a file to load it from GitHub.