Accelerated Mobile Pages(AMP)プロジェクトは、ウェブ コンテンツのパフォーマンス向上に役立つオープンソースのウェブ プラットフォームです。AMP には、Google タグと Google タグ マネージャーをサポートする機能があらかじめ組み込まれています。このガイドでは、Google アナリティクスを AMP ページ用にセットアップする方法を説明します。
インストール
Google タグを使用すると、Google アナリティクスや Google 広告をはじめとする Google のサービスを AMP ページに導入できます。Google タグ マネージャーを使用すると、AMP コンテナがセットアップされ、タグ マネージャーの管理画面を通して高度な設定の作成や第三者タグの導入が可能です。
[null,null,["最終更新日 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"]]