移动端代码植入简介
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以通过 Google 跟踪代码管理器在移动应用中设置数据收集。借助跟踪代码管理器,您可以修改应用设置方式,而无需重新构建应用代码并将其重新提交到应用市场。大多数情况下,您在使用跟踪代码管理器时无需编写任何代码。
开始前须知
在您的移动应用中使用跟踪代码管理器之前,请先设置 Google Analytics for Firebase SDK,以便将应用数据发送到 Google Analytics(分析)。您还可以将应用数据发送到与 Google Analytics(分析)集成的产品。安装 SDK 后,您可以使用跟踪代码管理器修改数据收集设置。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-02-06。
[null,null,["最后更新时间 (UTC):2024-02-06。"],[[["\u003cp\u003eGoogle Tag Manager enables mobile app data collection without requiring code changes or app rebuilds.\u003c/p\u003e\n"],["\u003cp\u003eSetting up Google Analytics for Firebase SDK is a prerequisite for using Tag Manager in mobile apps, allowing data transmission to Google Analytics and other integrated products.\u003c/p\u003e\n"],["\u003cp\u003eTag Manager simplifies data collection modification after the SDK installation.\u003c/p\u003e\n"]]],["Google Tag Manager enables data collection setup in mobile apps without recoding or resubmitting to marketplaces. It largely eliminates the need for coding. Before using Tag Manager, the Google Analytics for Firebase SDK must be set up to transmit app data to Google Analytics and integrated products. Once the SDK is installed, Tag Manager can be used to modify the app's data collection configuration. Further resources on Google Tag Manager are provided for Android and iOS.\n"],null,["# Introduction to mobile tagging\n\nYou can set up data collection in a mobile app through Google Tag Manager.\nTag Manager allows you to modify the way you set up your app without needing to\nrebuild and resubmit the app code to app marketplaces. Most of the time, you\nwon't need to write a single line of code when you use Tag Manager.\n\nBefore you begin\n----------------\n\nBefore you can use Tag Manager in your mobile app, set up the\n[Google Analytics for Firebase SDK](https://firebase.google.com/docs/analytics),\nwhich enables you to send app data to Google Analytics. You can also send\nyour app data to the products you integrate with Google Analytics. Once you\ninstall the SDK, you can use Tag Manager to modify your data collection setup.\n\nNext steps\n----------\n\n- [Google Tag Manager for Android](/tag-platform/tag-manager/android/v5)\n- [Google Tag Manager for iOS](/tag-platform/tag-manager/ios/v5)"]]