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.
Dự án Accelerated Mobile Pages (AMP) là một trang web nguồn mở
nền tảng giúp cải thiện hiệu suất của nội dung web. AMP bao gồm
tính năng hỗ trợ tích hợp sẵn cho thẻ Google và Trình quản lý thẻ của Google. Hướng dẫn này mô tả
cách thiết lập Google Analytics cho trang AMP.
Cài đặt
Thẻ Google cho phép bạn cài đặt Google Analytics, Google Ads và các công cụ khác
Các sản phẩm của Google trên trang AMP. Trình quản lý thẻ của Google thiết lập một vùng chứa AMP và
cho phép bạn tạo các cấu hình nâng cao và triển khai dịch vụ của bên thứ ba
thẻ khỏi giao diện Trình quản lý thẻ.
Chọn lựa chọn ưu tiên của bạn về nền tảng trong các nút sau:
Khắc phục sự cố
Sử dụng amptagtest.appspot.com để xác thực chế độ thiết lập gắn thẻ hoặc bạn có thể theo cách thủ công
hãy đảm bảo giá trị cid nhất quán giữa các miền bằng cách thực hiện
sau:
Hãy nhớ xóa cookie hoặc sử dụng Chế độ ẩn danh.
Nếu không tìm thấy cid trong cookie của Google Analytics, thì lớp này cũng có thể
ghi nhận được trong thẻ Network (Mạng) trên trình duyệt web của bạn. Tìm kiếm collect request,
và tải trọng phải chứa giá trị cid.
Sau khi chuyển từ CDN của Google đến trang web của khách hàng,
cid và giá trị gclid phải được truyền thông qua trang trí URL:
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThe Accelerated Mobile Pages (AMP) project is an open-source platform designed to enhance web content performance and includes built-in support for Google Analytics integration.\u003c/p\u003e\n"],["\u003cp\u003eThis guide provides instructions on implementing Google Analytics on AMP pages through either the Google tag for standard setup or Google Tag Manager for advanced configurations and third-party tags.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Tag Manager for AMP is not compatible with Google Analytics 4, necessitating manual snippet addition for GA4 integration with AMP.\u003c/p\u003e\n"],["\u003cp\u003eTroubleshooting tagging issues can be done using the provided validation tool or by manually verifying consistent \u003ccode\u003ecid\u003c/code\u003e values across domains, ensuring proper linker functionality and redirect handling.\u003c/p\u003e\n"]]],["The core content outlines setting up Google Analytics on Accelerated Mobile Pages (AMP). It details using the Google tag for Analytics and other Google products, or Google Tag Manager for advanced configurations and third-party tags, noting Tag Manager's incompatibility with Google Analytics 4. Troubleshooting involves using amptagtest.appspot.com or manually checking for consistent `cid` values across domains, ensuring `cid` and `gclid` are passed via URL decoration and are the same as initial values, while being cautious with redirects.\n"],null,["# Tag setup for AMP\n\nThe [Accelerated Mobile Pages](https://www.ampproject.org/) (AMP) project is an open-source web\nplatform that helps to improve the performance of your web content. AMP includes\nbuilt-in support for the Google tag and Google Tag Manager. This guide describes\nhow to set up Google Analytics for AMP pages.\n\nInstallation\n------------\n\nThe Google tag lets you install Google Analytics, Google Ads, and other\nGoogle products on AMP pages. Google Tag Manager sets up an AMP container and\ngives you the ability to create advanced configurations and deploy third-party\ntags from the Tag Manager interface.\n| **Important:** Google Tag Manager for AMP doesn't support Google Analytics 4. If you wish to use AMP with Google Analytics 4 you must [manually add](/tag-platform/gtagjs/amp?technology=gtagjs) the AMP snippet.\n\nSelect your platform preference from the following buttons:\n\nGoogle tag Tag Manager\n\nTroubleshooting\n---------------\n\nUse [amptagtest.appspot.com](https://amptagtest.appspot.com/) to validate your tagging setup or you can manually\nensure that the `cid` value is consistent across domains by doing the\nfollowing:\n\n- Make sure to clear cookies or use Incognito mode.\n- If `cid` is not found in a Google Analytics cookie, it can also be observed in your web browser's Network tab. Search for `collect request`, and the payload should contain a `cid` value.\n- Once you have passed from the Google CDN to the client website, the\n `cid` and the `gclid` value should be passed via URL decoration:\n\n **_Linker format: mydomain.com?\\_gl=1\\*1ie2jr6\\*\\_ga\\*WHFTa3JPckw2TGxZSzY5b3V1cVNVSmRIREI.\\*gclid\\*dGVzdA.._**\n\n- The final landing page should still have the same `cid` value as in the\n initial landing page.\n\n- Be careful with redirects and domain changes between the canonical page\n and non-AMP landing pages."]]