이 문서는 퍼스트 파티 모드로 Google 태그를 배포하려는 사용자를 대상으로 합니다. 가장 안정적인 태그 구성을 위해 퍼스트 파티 모드를 사용하는 것이 좋습니다.
개요
퍼스트 파티 모드를 사용하면 웹사이트 도메인에 호스팅된 자체 퍼스트 파티 인프라를 사용하여 Google 태그를 배포할 수 있습니다. 이 인프라는 웹사이트와 Google 서비스 간에 위치합니다. 이 문서의 설정을 통해 웹사이트를 더 효과적으로 측정할 수 있습니다. 기존 콘텐츠 전송 네트워크 (CDN), 부하 분산기 또는 웹 서버를 사용하여 설정할 수 있습니다.
표준 Google 태그 설정에서 웹페이지는 Google 도메인에서 Google 태그를 요청합니다. 태그가 실행되면 측정 요청이 Google 제품에 직접 전송됩니다. 퍼스트 파티 모드에서는 웹사이트가 퍼스트 파티 도메인에서 Google 태그를 로드합니다. 태그가 실행되면 측정 요청이 퍼스트 파티 도메인으로 전송되고 여기에서 관련 Google 제품으로 전달됩니다.
[null,null,["최종 업데이트: 2025-02-24(UTC)"],[[["This guide provides instructions for deploying the Google tag in first-party mode, offering a more durable and potentially better-performing tag configuration."],["First-party mode involves hosting the Google tag on your own domain, mediating data flow between your website and Google services."],["Your existing CDN or load balancer can be used to forward requests, and the guide assumes you already have a Google tag or Tag Manager container setup."],["Two setup options are available: manual setup or automated setup using Cloudflare."],["Testing involves verifying that event hits are correctly routed through your domain using Tag Assistant."]]],["First-party mode deploys the Google tag using your website's domain, enhancing measurement. It involves using your existing CDN, load balancer, or web server to host the tag. Instead of loading the tag from a Google domain, the website loads it from your domain, and measurement requests are routed through your domain before reaching Google. To set it up, choose either manual or automated setup (Cloudflare). To test, use Tag Assistant to preview your container and verify hits are routed correctly to `/metrics`.\n"]]