Debug Event

Debug Event

Google tag

A. Whole site

gtag('config', 'G-12345ABCDE',{
  'debug_mode':true
});

B. Specific event

gtag('event', 'xyz', {
  'debug_mode':true
});

Google Tag Manager (GTM)

A. Whole site

Add debug_mode field to the Google Analytics: GA4 Configuration, and set the value to true

Debug Event

B. Specific event

Add debug_mode parameter to the Google Analytics: GA4 Event, and set the value to true

Debug Event

disable debug mode

If you want to disable debug mode, you must remove the debug_mode field or parameter. Set the debug_mode value to false does not working.

Plugin

  • [Google Analytics Debugger - Chrome Web Store](Google Analytics Debugger - Chrome Web Store)

Reference