360 Secure SkillHub
360 安全技能中心

firebase-analytics

为 Google Analytics for Firebase 提供 Android 与 iOS 集成指南,涵盖依赖配置、SDK 初始化、屏幕追踪与自定义事件记录,并通过调试模式在 DebugView 中验证事件上报后清理临时代码。

分类:开发
firebase
热度 84.76
最近更新 2026-12-03 05:15:40

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add firebase/agent-skills/firebase-analytics
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
firebase-analytics
description
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.
compatibility
This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`.
version
1.0.0
metadata
{"author":"Google LLC","category":"CloudObservabilityAndMonitoring"}

Firebase Analytics

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.

Prerequisites

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).

SDK Setup

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:

SDK Usage

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.