Project Accelerated Mobile Pages (AMP) adalah platform web
open source yang membantu meningkatkan performa konten web Anda. AMP menyertakan dukungan bawaan untuk tag Google dan Google Tag Manager. Panduan ini menjelaskan cara menyiapkan Google Analytics untuk halaman AMP.
Penginstalan
Tag Google memungkinkan Anda menginstal Google Analytics, Google Ads, dan produk Google lainnya di halaman AMP. Google Tag Manager menyiapkan penampung AMP dan memberi Anda kemampuan untuk membuat konfigurasi lanjutan dan men-deploy tag pihak ketiga dari antarmuka Tag Manager.
Pilih preferensi platform dari tombol berikut:
Pemecahan masalah
Gunakan amptagtest.appspot.com untuk memvalidasi konfigurasi pemberian tag atau Anda dapat memastikan secara manual bahwa nilai cid konsisten di seluruh domain dengan melakukan hal berikut:
Pastikan untuk menghapus cookie atau menggunakan mode Samaran.
Jika cid tidak ditemukan dalam cookie Google Analytics, nilai tersebut juga dapat diamati di tab Jaringan browser web Anda. Telusuri collect request, dan payload harus berisi nilai cid.
Setelah Anda beralih dari Google CDN ke situs klien, nilai cid dan gclid harus diteruskan melalui dekorasi URL:
[null,null,["Terakhir diperbarui pada 2024-05-01 UTC."],[[["The 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."],["This 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."],["Google Tag Manager for AMP is not compatible with Google Analytics 4, necessitating manual snippet addition for GA4 integration with AMP."],["Troubleshooting tagging issues can be done using the provided validation tool or by manually verifying consistent `cid` values across domains, ensuring proper linker functionality and redirect handling."]]],["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"]]