Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Po sprawdzeniu poprawności zdarzeń warto zweryfikować implementację. Serwer weryfikacyjny sprawdza, czy zdarzenia mają prawidłową strukturę, ale aby potwierdzić, że są one prawidłowo wysyłane do Twojej usługi, musisz wykonać te czynności:
Jeśli po wykonaniu tych czynności nie widzisz swoich wydarzeń, zapoznaj się z rozwiązywaniem problemów, aby poznać typowe błędy implementacji.
Wysyłanie zdarzenia z poziomu klienta
Wybierz klienta:
Wysyłanie zdarzenia do usługi
Sprawdzanie widoku Czas rzeczywisty
Po wysłaniu zdarzenia za pomocą Measurement Protocol sprawdź widok Czas rzeczywisty w swojej usłudze. Zdarzenia zwykle pojawiają się w ciągu kilku sekund.
Otwórz widok Czas rzeczywisty. W tym celu otwórz Google Analytics, a następnie w panelu nawigacyjnym po lewej stronie kliknij Raporty > Czas rzeczywisty. Skup się na wykresach u dołu, takich jak „Liczba zdarzeń według nazwy zdarzenia” i „Kluczowe zdarzenia według nazwy zdarzenia”.
Sprawdzanie widoku debugowania
Jeśli widok Czas rzeczywisty nie zawiera wystarczających informacji, aby zweryfikować implementację, włącz tryb debugowania w niektórych zdarzeniach testowych, uwzględniając w params te parametry, aby móc monitorować i sprawdzać zdarzenia w DebugView:
"debug_mode": true lub "debug_mode": 1
"engagement_time_msec" ustawiona na liczbę dodatnią.
Na przykład poniższy kod wysyła zwrot środków z włączonym trybem debugowania:
Po wysłaniu zdarzeń z włączonym trybem debugowania postępuj zgodnie z instrukcjami dotyczącymi monitorowania zdarzeń za pomocą DebugView, aby sprawdzić implementację.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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."]]