Google 애널리틱스 측정 프로토콜은
HTTP 오류 코드(이벤트 형식이 잘못되었거나 이벤트가 누락된 경우 포함)
매개변수입니다. 이벤트가 유효한지 확인하려면 이를 프로덕션에 배포하기 전에
측정 프로토콜 유효성 검사 서버를 테스트해야 합니다.
이벤트가 올바르게 구성되었음을 확인한 후에는 올바른 키를 사용하고 있는지
검증하기 위해 구현을 확인해야 합니다.
유효성 검사 서버를 직접 호출하거나 Google 애널리틱스
이벤트 빌더. Google 애널리틱스 이벤트 작성 도구를 이용하면
이벤트를 구성하고, 측정 프로토콜 유효성 검사 서버를 사용하여
검증할 수 있어야 합니다
이 가이드에서는 Google 애널리틱스 4 유효성 검사 서버의 측정 프로토콜로
이벤트를 전송하고 응답을 해석하는 방법을 설명합니다.
유효성 검사를 위해 이벤트 전송
측정 프로토콜로 전송된 이벤트와 측정 프로토콜 유효성 검사 서버로 전송된 이벤트 요청의
유일한 차이점은 URL입니다.
서버
URL
측정 프로토콜
/mp/collect
측정 프로토콜 유효성 검사 서버
/debug/mp/collect
다른 모든 요청 필드는 동일하며, 프로토콜 참조에서 유효한 요청을 작성하는 방법에 대한
자세한 내용을 참고하세요.
[[["이해하기 쉬움","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-08-21(UTC)"],[[["The Measurement Protocol Validation Server helps ensure your Google Analytics 4 events are correctly formatted before deploying to production."],["The Validation Server uses a different URL endpoint (`/debug/mp/collect`) than the standard Measurement Protocol (`/mp/collect`)."],["Validation responses provide detailed error messages including the field path, description, and a validation code for easier debugging."],["Events sent to the Validation Server are not processed and will not appear in your Google Analytics reports."],["The Google Analytics Event Builder offers an interactive way to construct and validate events before sending them to the server."]]],["To ensure valid events, use the Measurement Protocol Validation Server by sending requests to `/debug/mp/collect` instead of `/mp/collect`. Validate events before deploying them. This server doesn't log events in reports. It returns a response with `validationMessages`, an array detailing any errors like `NAME_INVALID`, `VALUE_REQUIRED`, or `VALUE_OUT_OF_BOUNDS`, specifying the `fieldPath`, `description`, and `validationCode` of the issue. Use the Google Analytics Event Builder for interactive event construction.\n"]]