Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trình quản lý thẻ của Google cung cấp thẻ theo dõi lượt chuyển đổi của Google Ads để
hỗ trợ tính năng theo dõi lượt chuyển đổi Google Ads linh hoạt và dựa trên quy tắc cho các ứng dụng Android.
Hướng dẫn này cho bạn biết cách sử dụng Trình quản lý thẻ của Google để theo dõi lượt chuyển đổi cài đặt ứng dụng Android bằng
Các thẻ theo dõi lượt chuyển đổi của Google Ads:
5. Đẩy sự kiện chuyển đổi trên Google Ads
vào lớp dữ liệu
Khởi chạy đầu tiên
Trình quản lý thẻ của Google (GTM). Sau đó, hãy thêm mã sau đây vào ứng dụng của bạn
để đẩy sự kiện chuyển đổi Google Ads vào lớp dữ liệu. Điều này sẽ cho phép
GTM để đánh giá trình kích hoạt và kích hoạt thẻ so khớp:
Nếu ứng dụng của bạn sử dụng tính năng liên kết sâu, để ghi lại lượt chuyển đổi liên kết sâu,
đẩy đường liên kết đến lớp dữ liệu dưới dạng "gtm.url" trong các hoạt động
được khởi chạy theo ý định của bạn:
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThis guide explains how to track Android app install conversions with Google Ads by using Google Tag Manager and conversion tracking tags.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves setting up a new conversion in Google Ads, creating a corresponding trigger and tag in Google Tag Manager, and updating your app's \u003ccode\u003eAndroidManifest.xml\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003eYou need to push a specific event to the data layer within your app to trigger the Google Ads conversion tracking tag in Google Tag Manager.\u003c/p\u003e\n"],["\u003cp\u003eIf your app utilizes deep linking, additional code is necessary to record deep linking conversions by pushing the link information to the data layer.\u003c/p\u003e\n"],["\u003cp\u003eFinally, you need to publish your Google Tag Manager container to deploy these changes and start tracking conversions.\u003c/p\u003e\n"]]],["This guide outlines using Google Tag Manager to track Android app install conversions with Google Ads. Key steps include: creating a new conversion in Google Ads, setting up a trigger and a Google Ads conversion tracking tag in Google Tag Manager, and updating the `AndroidManifest.xml` file. Additionally, it involves pushing the conversion event to the data layer, optionally recording deep links, and finally, publishing the container to activate the tracking.\n"],null,["# Google Ads conversion tracking\n\nGoogle Tag Manager provides Google Ads conversion tracking tags to\nsupport flexible, rule-based Google Ads conversion tracking for Android apps.\n\nThis guide shows you how use Google Tag Manager to track Android app install conversions with\nGoogle Ads conversion tracking tags:\n\n1. [Create a new conversion in Google Ads](#create-conversion)\n2. [Create a trigger to fire a Google Ads conversion\n tracking tag](#create-trigger)\n3. [Create a Google Ads conversion tracking tag](#create-tag)\n4. [Update file\n `AndroidManifest.xml`](#update-xml-file)\n5. [Push the conversion\n event to the data layer](#push-event-to-datalayer)\n6. [Record deep links](#record-deep-links)\n7. [Publish the container](#publish-container)\n\n1. Create a new conversion in Google Ads\n----------------------------------------\n\nTo create a new conversion in Google Ads:\n\n1. Sign in to your [Google Ads](//ads.google.com) account.\n2. At the menu bar, select **Tools \\\u003e Conversions**.\n3. Click **+ CONVERSION**.\n4. Select **App**.\n5. Select **Android** and **App installs (first open)** and click **Continue**.\n6. Enter the following:\n - Click **Name** to the name of the Android app and click **Done**.\n - Click **Value** to enter a value for each install of the app, or select **Don't assign a value to this install** , and click **Done**.\n - Click **Package name** to enter the package name of your Android app within Google play and click **Done**.\n - Click **Optimization** , which is turned off by default. To turn on optimization, click **OFF** to toggle it to **ON** and click **Done**.\n - (Optional). Click **Postback URL** to enter the URL from your analytics provider where you'd like conversions to be posted and click **Done**.\n7. Click **Save and continue**.\n8. Review your conversion settings. To change them, click **Edit settings**.\n9. Under **Set up your tracking method** , select **Put tracking code into the app** . See the screenshot of setting up conversion tracking.\n10. Click **Save instructions and code** or **Email instructions and code** to save the conversion ID and conversion label, which are required to [create a Google Ads conversion tracking tag](#create-tag).\n11. Click **Done**.\n\n2. Create a trigger to fire a Google Ads conversion\ntracking tag\n----------------------------------------------------------------\n\nTo create a trigger in Google Tag Manager to fire the\nGoogle Ads conversion tracking tag:\n\n1. Sign in to your [Google Tag Manager](//tagmanager.google.com) account.\n2. Select a mobile container.\n3. On the left navigation bar, click **Triggers**.\n4. Click **New**.\n5. Under **Fire On** , enter the following conditions:\n\n6. Click **Create Trigger**.\n7. Enter a trigger name.\n8. Click **Save**.\n\n3. Create a Google Ads conversion tracking tag\n----------------------------------------------\n\nTo create a Google Ads conversion tracking tag:\n\n1. Sign in to your [Google Tag Manager](//tagmanager.google.com) account.\n2. Select a mobile container.\n3. On the left navigation bar, click **Tags**.\n4. Click **New**.\n5. Choose product **Google Ads**.\n6. Choose tag type **Google Ads Conversion Tracking**.\n7. Enter the **Conversion ID** and **Conversion Label**.\n8. Select **Unrepeatable**.\n9. Click **Continue**.\n10. Under **Fire On** , select **Custom** event.\n11. Select the trigger created in step 2.\n12. Click **Save**.\n13. Click **Create Tag**.\n14. Enter a tag name (e.g. **Android App Install Conversion**).\n15. Click **Save**.\n\n4. Update file `AndroidManifest.xml`\n------------------------------------\n\nIn Android Studio, open the `AndroidManifest.xml` file to add\nthe following within the `\u003capplication\u003e` tag: \n\n```gdscript\n\u003cservice android:name=\"com.google.android.gms.tagmanager.InstallReferrerService\"/\u003e\n\u003creceiver\n android:name=\"com.google.android.gms.tagmanager.InstallReferrerReceiver\"\n android:exported=\"true\"\u003e\n \u003cintent-filter\u003e\n \u003caction android:name=\"com.android.vending.INSTALL_REFERRER\" /\u003e\n \u003c/intent-filter\u003e\n\u003c/receiver\u003e\n```\n\n5. Push the Google Ads conversion event\nto the data layer\n---------------------------------------------------------\n\nFirst initialize [Google Tag Manager (GTM)](/tag-platform/tag-manager/android/v4#init). Then add the following code you to your app\nto push the Google Ads conversion event to the data layer, which will enable\nGTM to evaluate the trigger and fire the matching tag: \n\n```text\nDataLayer dataLayer = TagManager.getInstance(context).getDataLayer();\ndataLayer.pushEvent(\"appLaunch\", DataLayer.mapOf());\n```\n\n6. Record deep links\n--------------------\n\nIf your app uses deep linking, to record a deep linking conversion,\npush the link to the data layer as `\"gtm.url\"` in the activities\nlaunched by your intents: \n\n```text\nif (this.getIntent() != null && this.getIntent().getData() != null ) {\n TagManager.getInstance(this).getDataLayer().push(\"gtm.url\", this.getIntent().getData().toString());\n}\n```\n\n7. Publish the container\n------------------------\n\nYou can now publish your container to begin firing the Google Ads conversion tag.\nFor details, see **Adding, Updating and Publishing Tags** on\n[Setup and Workflow (Mobile Apps)](//support.google.com/tagmanager/answer/3127354).\n\n\u003cbr /\u003e"]]