试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
Google Analytics for Apps
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页介绍了 Google Analytics 应用版,以及开始使用该服务所需完成的操作。
Google Analytics 会衡量事件,帮助您了解自己的效果。例如,您可以使用 Google Analytics 来衡量互动情况、获取有关受众群体的数据洞见,以及了解受众群体与您的应用的互动情况。
设置账号
下面简要介绍了设置 Google Analytics 账号以收集数据的步骤:
- 如果您还没有 Google Analytics 账号,请创建一个。
- 创建账号后,创建新媒体资源。
媒体资源就像是用于存放所收集数据的容器。
- 创建新媒体资源后,添加应用数据流,以将应用中的数据发送到该媒体资源。
标记您的应用
如需将 Google Analytics 添加到您的应用并开始记录事件,请使用 Firebase。
Firebase 是 Google 的集成式应用开发者平台。Firebase SDK 会自动为您收集基本的应用使用情况数据,无需您编写任何其他代码。以下是一些可衡量的示例:
- 应用打开次数。
- 应用内购买的次数。
- 有多少用户在特定时间段内处于活跃状态。
如需跨多个平台进行衡量,请使用 Measurement Protocol。如需开始使用,请尝试我们的向 Google Analytics 发送应用事件 Codelab。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-04。
[null,null,["最后更新时间 (UTC):2025-08-04。"],[[["\u003cp\u003eIntegrate Google Analytics into your app using Firebase for event logging.\u003c/p\u003e\n"],["\u003cp\u003eUtilize the Measurement Protocol for cross-platform data collection and analysis.\u003c/p\u003e\n"],["\u003cp\u003eExplore the "Send app events to Google Analytics" codelab for practical implementation guidance.\u003c/p\u003e\n"]]],["The core content focuses on integrating Google Analytics for app event tracking. To do this, use Firebase for adding Google Analytics and logging events. For tracking across various platforms, utilize the Measurement Protocol. A codelab is provided as a starting point, guiding users through sending app events to Google Analytics. This enables users to effectively measure and analyze app activity across multiple platforms.\n"],null,["# Google Analytics for apps\n\nThis page explains Google Analytics for apps, and what you need to do to get\nstarted.\n\nGoogle Analytics measures events to help you learn about your performance. For\nexample, you can use Google Analytics to measure engagement, insights about your\naudience, and how they interact with your app.\n\nSet up your account\n-------------------\n\nHere's an overview of the steps to set up your Google Analytics account for data\ncollection:\n\n1. If you don't already have one, [create a Google Analytics\n account](//support.google.com/analytics/answer/9304153#account).\n2. After creating an account, [create a new\n property](//support.google.com/analytics/answer/9304153#property). Properties are like containers that hold the data you collect.\n3. Once you've created a new property, [add an app data stream](//support.google.com/analytics/answer/9304153#stream&zippy=%2Cios-app-or-android-app) that sends the data from your app to the property.\n\nTag your app\n------------\n\nTo add Google Analytics to your app and begin logging events, use\n[Firebase](//firebase.google.com/docs/analytics/get-started).\n\nFirebase is Google's integrated app-developer platform. The Firebase SDK\ncollects basic app-usage data for you automatically, without the need to write\nany additional code. Here are some examples of what you can measure:\n\n- How many times your app was opened.\n- How often in-app purchases were made.\n- How many users were active during a certain period of time.\n\nMeasure additional platforms\n----------------------------\n\nFor measurement across multiple platforms, use the [Measurement\nProtocol](/analytics/devguides/collection/protocol/ga4). To get started, try our\n[Send app events to Google Analytics\ncodelab](//firebase.google.com/codelabs/firebase_mp#0)."]]