衡量移动应用中的转化情况
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
转化衡量功能可帮助您了解用户互动是否会有效转化为移动应用中有价值的客户活动,例如应用内购买、订阅和注册等。
移动应用转化可以通过 Google Ads 和 Google Analytics(分析)4 进行衡量。
Google Ads
若要在 Google Ads 账号中捕获转化情况,请导入 Google Analytics(分析)4 媒体资源中的事件:
- 登录您的 Google Ads 账号。
- 点击账号右上角的
。
- 在衡量部分下,点击转化。
- 点击
。
- 从转化类型列表中选择应用。
- 点击 Google Analytics(分析)4 (Firebase),然后点击继续。
- 选中您要导入的每个事件旁边的复选框,然后点击导入。
- 点击完成。
详细了解 Google Ads 转化。
Google Analytics(分析)4
通过 Google Analytics(分析)4 媒体资源,您可以统一衡量网站和移动应用中的用户互动和事件。Google Analytics(分析)4 默认收集多种事件,并且某些事件会自动标记为转化。Google Analytics(分析)4 媒体资源中的应用数据流利用 Firebase SDK 发送事件。详细了解事件。
此外,您可以启用或停用其他自动收集的事件,也可以将自定义事件标记为转化。
您可以在事件发送之前或之后将事件注册为转化。
若要在事件发送之前进行注册,请执行以下操作:
- 在 Google Analytics(分析)中,转到 Google Analytics(分析)4 媒体资源的报告。
- 点击转化。
- 点击新建转化事件。
- 输入要指定为转化的事件的名称。注意:请确保您输入的事件名称与您要发送的事件的名称完全一致。
- 点击保存。
如果您之前已经发送了事件,并且想要将其标记为转化,请执行以下操作:
- 在 Google Analytics(分析)中,转到 Google Analytics(分析)4 媒体资源的报告。
- 点击所有事件。
- 在相应事件所对应的行中,开启标记为转化列中的开关。
若要发送自定义事件,请执行以下操作:
Android:Java
Bundle params = new Bundle();
params.putString("image_name", name);
params.putString("full_text", text);
mFirebaseAnalytics.logEvent("share_image", params);
Android:Kotlin
firebaseAnalytics.logEvent("share_image") {
param("image_name", name)
param("full_text", text)
}
iOS:Swift
Analytics.logEvent("share_image", parameters: [
"name": name as NSObject,
"full_text": text as NSObject
])
iOS:Objective-C
[FIRAnalytics logEventWithName: @ "share_image"
parameters: @ {
@ "name": name,
@ "full_text": text
}
];
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-02-06。
[null,null,["最后更新时间 (UTC):2024-02-06。"],[[["\u003cp\u003eKey event measurement allows you to track user interactions within your mobile app that lead to valuable customer actions like purchases and sign-ups.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Ads and Google Analytics 4 can be used to measure mobile app conversions and key events for analysis and optimization.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Analytics 4 provides unified measurement across your website and mobile app, collecting many events by default with the option to customize key events for specific tracking needs.\u003c/p\u003e\n"],["\u003cp\u003eYou can mark events as key events in Google Analytics 4 either before they are sent or retroactively after they have been recorded.\u003c/p\u003e\n"]]],["Key mobile app user activities, like purchases and sign-ups, can be measured as conversions in Google Ads and key events in Google Analytics 4. In Google Ads, import events from Google Analytics 4 by navigating to **Conversions** and selecting **App**. In Google Analytics 4, register events as key events by entering the event's exact name under **Key events** or marking the event under **All events**. Custom events can be sent via the Firebase SDK, as demonstrated with code examples for Android and iOS.\n"],null,["# Measure key events in mobile apps\n\nKey event measurement can help you to understand if user interactions\neffectively lead to valuable customer activity within your mobile app, such as\nin-app purchases, subscriptions, and sign-ups.\n\nMobile app conversions and key events may be measured in [Google Ads](#google_ads) and\n[Google Analytics 4](#google_analytics_4).\n\nGoogle Ads\n----------\n\nTo capture conversions in your Ads account, import events from your Google\nAnalytics 4 property:\n\n1. Sign in to your [Google Ads account](https://ads.google.com/).\n2. Click in the upper-right corner of your account.\n3. Under the section labeled **Measurement** click **Conversions**.\n4. Click .\n5. Select **App** from the list of conversion types.\n6. Click **Google Analytics 4 (Firebase)** , then click **Continue**.\n7. Check the box next to each event you'd like to import, click **Import**.\n8. Click **Done**.\n\n[Learn more about Google Ads conversions](https://support.google.com/google-ads/answer/6366292).\n\nGoogle Analytics 4\n------------------\n\nGoogle Analytics 4 properties enable unified measurement of user interactions\nand events across your website and mobile app. Google Analytics 4 collects many\nevents by default, and some events are automatically marked as key events. App\ndata streams within Google Analytics 4 properties utilize the [Firebase SDK](https://firebase.google.com/docs/guides) to\nsend events. [Learn more about events](https://developers.google.com/tag-platform/devguides/events).\n\nAdditionally, you can [enable or turn off](https://support.google.com/analytics/answer/9267568) other automatically collected events,\nor mark custom events as key events as well.\n\nYou can register an event as a key event either before or after the event is\nsent.\n\nTo register an event before it is sent:\n\n1. In Analytics, navigate to the reports for your Google Analytics 4 property.\n2. Click **Key events**.\n3. Click **New key event**.\n4. Enter the name of the event you want to identify as a key event. *Note:\n Make sure the event name you enter is exactly the same as the event that you\n are sending.*\n5. Click **Save**.\n\nIf you've already sent the event previously and want to mark it as a key event:\n\n1. In Analytics, navigate to the reports for your Google Analytics 4 property.\n2. Click **All events**.\n3. In the row for the event, turn on the switch in the **Mark as key event** column.\n\nTo send a custom event, do the following: \n\n### Android: Java\n\n Bundle params = new Bundle();\n params.putString(\"image_name\", name);\n params.putString(\"full_text\", text);\n mFirebaseAnalytics.logEvent(\"share_image\", params);\n\n### Android: Kotlin\n\n firebaseAnalytics.logEvent(\"share_image\") {\n param(\"image_name\", name)\n param(\"full_text\", text)\n }\n\n### iOS: Swift\n\n Analytics.logEvent(\"share_image\", parameters: [\n \"name\": name as NSObject,\n \"full_text\": text as NSObject\n ])\n\n### iOS: Objective-C\n\n [FIRAnalytics logEventWithName: @ \"share_image\"\n parameters: @ {\n @ \"name\": name,\n @ \"full_text\": text\n }\n ];"]]