dentvega/firebase-agent-skills/firebase-analytics
Claude Code and agent skill by dentvega/firebase-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Sets up Firebase Analytics (Google Analytics for Firebase) on web and Expo / React Native — installing, logging custom events, setting user properties, debugging in real time, integrating with BigQuery for raw events, and respecting iOS ATT consent. Use whenever the user wants to track product usage, funnels, or user demographics.
Install
npx vskill@latest install dentvega/firebase-agent-skills/firebase-analyticsSKILL.md
The same SKILL.md was published earlier as dentvega/firebase-agent-skills/firebase-analytics.
Firebase Analytics
Minimum viable example
Event names: lowercase_snake_case, ≤ 40 chars, ≤ 25 params per event. Violations are silently dropped — verify with DebugView before shipping.
1. Install
Web
isSupported() is required for SSR (Next.js) — getAnalytics throws in non-browser environments.
Expo / React Native
Add to app.json:
Rebuild (npx expo prebuild --clean + EAS Build).
2. iOS App Tracking Transparency (ATT)
For any IDFA-based analytics (cross-app tracking, ad attribution), iOS 14.5+ requires explicit user consent via the ATT prompt. Without it, IDFA is zeroed out and ad measurement breaks.
app.json:
Firebase Analytics still works without ATT for first-party events and aggregate metrics — only IDFA-linked features (Audiences for ads, attribution) are affected.
If shipping in the EEA, UK, or Switzerland, you also need Google Consent Mode v2 — see references/consent-mode.md. Without it, Google blocks all data from those regions.
3. Log events
Reserved events (screen_view, login, sign_up, purchase, search, etc.) get richer reporting — use them when applicable:
Event naming rules
- Lowercase snake_case
- ≤ 40 characters
- ≤ 25 parameters per event
- Parameter names ≤ 40 chars, values ≤ 100 chars (string) or
number
Events that violate these rules are silently dropped. Test in DebugView (next section).
4. Real-time debugging (DebugView)
The Analytics dashboard has a 24h delay. For development, use DebugView for real-time event verification:
For iOS, in Xcode → Edit Scheme → Run → Arguments → add -FIRDebugEnabled to "Arguments Passed On Launch".
Open Firebase Console → Analytics → DebugView → your device appears, events stream in seconds.
5. User properties and IDs
User properties are usable as Audiences for Remote Config targeting and Firebase Messaging campaigns. They're also dimensions in BigQuery exports.
Privacy: never set personally identifiable strings as user properties (email, name, phone). Use anonymous IDs only. The userId accepts an opaque string — your Firebase Auth uid is fine.
6. Screen tracking (React Navigation)
For Expo Router, hook into the useSegments() change instead.
7. BigQuery export
For raw event analysis beyond what the console offers, enable BigQuery export:
Firebase Console → Project Settings → Integrations → BigQuery → Link.
Events stream to a daily-partitioned table (events_YYYYMMDD) with ~1 hour delay. Pricing: free under 1M events/day; standard BigQuery beyond.
8. Common mistakes
- Calling `getAnalytics` in Next.js without `isSupported`. Throws during SSR.
- Expecting events in the dashboard immediately. 24h delay. Use DebugView for verification.
- Naming events in CamelCase or with spaces. Silently rejected.
- Setting PII as user properties. Violates Google's terms and risks account suspension.
- Forgetting to rebuild after adding the plugin.
@react-native-firebase/analyticsrequires native code. - Treating Analytics as a real-time event bus. It's batched. For real-time, write events to Firestore or Pub/Sub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/firebase-analytics/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dentvega/firebase-agent-skills/firebase-analytics)