Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Sau khi thực hiện xác thực sự kiện, bạn sẽ muốn xác minh việc triển khai của mình. Máy chủ xác thực sẽ xác thực rằng các sự kiện của bạn có cấu trúc chính xác, nhưng để xác minh rằng các sự kiện đó đang được gửi chính xác đến tài sản của bạn, bạn cần làm như sau:
Nếu bạn không thấy sự kiện của mình sau khi thực hiện các bước này, hãy xem phần khắc phục sự cố để biết các lỗi thường gặp khi triển khai.
Gửi một sự kiện từ ứng dụng khách
Chọn khách hàng của bạn:
Gửi một sự kiện đến tài sản của bạn
Kiểm tra chế độ xem Theo thời gian thực
Sau khi gửi một sự kiện bằng Measurement Protocol, hãy kiểm tra Chế độ xem theo thời gian thực cho tài sản của bạn. Các sự kiện thường xuất hiện trong vòng vài giây.
Chuyển đến chế độ xem Theo thời gian thực bằng cách mở Google Analytics, sau đó chuyển đến Báo cáo > Thời gian thực trong bảng điều hướng bên trái. Bạn nên tập trung vào các biểu đồ dưới cùng, chẳng hạn như "Số sự kiện theo Tên sự kiện" và "Sự kiện chính theo Tên sự kiện".
Kiểm tra DebugView
Nếu chế độ xem Theo thời gian thực không cung cấp đủ thông tin chi tiết để bạn xác minh việc triển khai, hãy bật chế độ gỡ lỗi trong một số sự kiện kiểm thử bằng cách thêm các thông số sau vào quá trình thu thập params để bạn có thể theo dõi và xem xét các sự kiện trong DebugView:
"debug_mode": true hoặc "debug_mode": 1
"engagement_time_msec" được đặt thành một số dương
Ví dụ: mã sau đây sẽ gửi một khoản tiền hoàn lại khi chế độ gỡ lỗi được bật:
Sau khi bạn gửi sự kiện ở chế độ gỡ lỗi, hãy làm theo hướng dẫn về giám sát sự kiện bằng DebugView để xác minh việc triển khai của bạn.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eThis guide provides steps to verify your analytics implementation after validating your events.\u003c/p\u003e\n"],["\u003cp\u003eYou'll learn how to send events from a client and your property, then monitor them in Realtime view and DebugView.\u003c/p\u003e\n"],["\u003cp\u003eIf events aren't appearing, refer to the troubleshooting section for common implementation errors.\u003c/p\u003e\n"]]],["To verify events are sent to your property, send an event from a client and to your property. Then, check the Realtime view in Google Analytics under **Reports**. Focus on the \"Event count by Event name\" and \"Key Events by Event name\" charts. For more detail, enable debug mode by including `\"debug_mode\": true` or `\"debug_mode\": 1` and `\"engagement_time_msec\"` in the `params` collection of test events. Monitor these events in the DebugView. If issues occur, consult troubleshooting.\n"],null,["# Verify implementation\n\nAfter going through [validating events](/analytics/devguides/collection/protocol/ga4/validating-events), you'll want to verify your\nimplementation. The validation server validates that your events have the\ncorrect structure, but to verify that they are being sent correctly to your\nproperty, you'll need to do the following:\n\n- [Send an event from a client](#client_send)\n- [Send an event to your property](#send)\n- [Check the Realtime view](#realtime)\n- [Check DebugView](#debugview)\n\nIf you're not seeing your events after going through these steps, check\n[troubleshooting](/analytics/devguides/collection/protocol/ga4/troubleshooting) for common implementation errors.\n\nSend an event from a client\n---------------------------\n\nChoose your client: \nFirebase gtag.js\n\n\u003cbr /\u003e\n\nSend an event to your property\n------------------------------\n\nCheck the Realtime view\n-----------------------\n\nAfter sending an event using the Measurement Protocol, check the Realtime view\nfor your property. Events typically show up within a few seconds.\n\nGo to the Realtime view by opening [Google Analytics](https://analytics.google.com), then going to\n**Reports** \\\u003e **Realtime** in the left navigation. You'll want to focus on the\nbottom charts, such as \"Event count by Event name\" and \"Key Events by Event\nname.\"\n\nCheck DebugView\n---------------\n\nIf the Realtime view doesn't provide enough detail for you to verify your\nimplementation, enable debug mode in some test events by including the following\nparameters in the `params` collection so you can monitor and review the events\nin **DebugView**:\n\n1. `\"debug_mode\": true` or `\"debug_mode\": 1`\n2. `\"engagement_time_msec\"` set to a positive number\n\nFor example, the following sends a [refund](/analytics/devguides/collection/protocol/ga4/reference/events#refund) with debug mode enabled:\n\nAfter you send events with debug mode enabled, follow the instructions for\n[monitoring events using **DebugView**](//support.google.com/analytics/answer/7201382) to verify your implementation."]]