試用 Google Analytics 的 MCP 伺服器。從
GitHub 安裝,詳情請參閱
公告。
應用程式專用 Google Analytics
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁面說明 Google Analytics 應用程式,以及開始使用時的必要步驟。
Google Analytics 會評估事件,協助您瞭解成效。舉例來說,您可以使用 Google Analytics 評估參與度、瞭解目標對象,以及他們與應用程式的互動情形。
設定帳戶
以下簡要說明如何設定 Google Analytics 帳戶來收集資料:
- 如果還沒有,請建立 Google Analytics 帳戶。
- 建立帳戶後,請建立新資源。資源就像容器,用來存放您收集的資料。
- 建立新資源後,請新增應用程式資料串流,將應用程式資料傳送至資源。
為應用程式加上標記
如要將 Google Analytics 新增至應用程式並開始記錄事件,請使用 Firebase。
Firebase 是 Google 的整合式應用程式開發人員平台,您無需新增任何額外程式碼,Firebase SDK 就會自動為您搜集基本應用程式使用資料。以下列舉幾個可測量的項目:
- 應用程式開啟次數。
- 應用程式內購的頻率。
- 特定時間範圍內的活躍使用者人數。
如要跨多個平台進行評估,請使用 Measurement Protocol。如要開始使用,請試試我們的將應用程式事件傳送至 Google Analytics Codelab。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-04 (世界標準時間)。
[null,null,["上次更新時間: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)."]]