다음은 웹사이트와 동일한 퍼스트 파티 컨텍스트에서 서버 측 태그 지정을 호스팅하려는 개발자를 위한 도움말입니다. 동일한 소스에서 제공은 서버 측 쿠키의 보안 및 내구성 이점을 활용할 수 있는 권장사항입니다. 아래 안내는 사이트에 배포된 Google 태그 (gtag.js 또는 gtm.js)와 관계없이 동일 출처 게재 설정에 적용됩니다.
태그 지정 서버를 처음 설정하면 클라우드 제공업체에서 제공하는 도메인에 호스팅됩니다. 기본 엔드포인트를 사용하면 서버 컨테이너에 데이터를 전송하지만 서드 파티 컨텍스트에서 실행됩니다. 내구성이 뛰어난 쿠키와 같은 퍼스트 파티 컨텍스트의 이점을 활용하려면 태그 관리 서버와 웹사이트가 동일한 도메인에서 실행되어야 합니다.
아래 표는 상위 웹사이트가 www.example.com에 호스팅된 경우 태그 지정 서버를 호스팅하는 방법을 보여줍니다.
동일한 출처 (권장사항)
하위 도메인
기본 도메인
URL 예시
https://www.example.com/metrics
https://metrics.example.com
https://metrics.run.app
서버 설정 쿠키 액세스
보안 및 내구성 혜택을 모두 이용할 수 있습니다.
보안 및 내구성 혜택을 모두 이용할 수 있습니다.
없음. JavaScript 쿠키만 설정할 수 있습니다.
설정 복잡성
요청을 전달하도록 CDN 또는 부하 분산기를 구성합니다. DNS 항목을 업데이트해야 할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-11-15(UTC)"],[[["This article guides developers on hosting server-side tagging in a first-party context for enhanced security and cookie durability."],["Achieving same-origin serving involves configuring your tagging server and website to run on the same domain, which can be done using a subdomain or by forwarding requests to a specific path on your main domain."],["Server-side tagging hosted on the default domain lacks access to crucial server-set cookie benefits, unlike same-origin setups."],["Setting up same-origin serving requires updating DNS entries or configuring a CDN/load balancer, depending on the chosen method."],["Before implementing same-origin serving, ensure you've established a server container in Tag Manager and set up a tagging server."]]],[]]