Accelerated Mobile Pages(AMP) 프로젝트는 웹 콘텐츠의 성능을 개선하는 데 도움이 되는 오픈소스 웹 플랫폼입니다. AMP에서는 Google 태그 및 Google 태그 관리자를 기본적으로 지원합니다. 이 가이드에서는 AMP 페이지에 Google 애널리틱스를 설정하는 방법을 설명합니다.
설치
Google 태그를 사용하면 Google 애널리틱스, Google Ads 및 기타 Google 제품을 AMP 페이지에 설치할 수 있습니다. Google 태그 관리자를 통해 AMP 컨테이너를 설정하고, 고급 구성을 만들고, 태그 관리자 인터페이스에서 서드 파티 태그를 배포할 수 있습니다.
다음 버튼 중에서 사용 중인 플랫폼 환경설정을 선택하세요.
문제 해결
amptagtest.appspot.com을 사용하여 태그 지정 설정의 유효성을 검사하거나 다음을 수행하여 cid 값이 전체 도메인에서 일관되도록 지정할 수 있습니다.
쿠키를 삭제하거나 시크릿 모드를 사용해야 합니다.
Google 애널리틱스 쿠키에서 cid를 찾을 수 없는 경우, 웹브라우저의
네트워크 탭에서도 이러한 쿠키를 확인할 수 있습니다. collect request를 검색하면
페이로드에 cid 값이 포함되어야 합니다.
Google CDN에서 클라이언트 웹사이트로 전달되면
cid 및 gclid 값이 다음과 같은 URL 데코레이션을 통해 전달되어야 합니다.
[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"]]