• Courses
    • Courses
    • Course bundles
  • Blog
  • Services
  • Resources
    • Youtube channel
    • E-books and Guides
    • GTM Recipes
    • View All Resources
    • GTM Community
    • GA4 community
  • About
    • About
    • Contact
  • Login
  • Courses
    • Courses
    • Course bundles
  • Blog
  • Services
  • Resources
    • Youtube channel
    • E-books and Guides
    • GTM Recipes
    • View All Resources
    • GTM Community
    • GA4 community
  • About
    • About
    • Contact
  • Login

December 8, 2022

A Guide to DebugView in Google Analytics 4

Updated: December 8th, 2022

When you implement something in Google Analytics (or any other platform), never trust your gut. Always verify that the data was actually received by the platform and is displayed in reports the way you expect it.

Luckily, GA4 has a neat feature for that called DebugView.

DebugView in Google Analytics 4 allows checking the incoming data at a more granular level (without waiting for hours). And in this blog post, I will show you how to use it.

 

Table of Contents

+ Hide table of contents +

  • Video Tutorial
  • Where can you find DebugView?
  • 3 ways to enable DebugView (for websites)
    • #1. GA Debugger Chrome Extension
    • #2. GTM Preview mode
    • #3. debug_mode event parameter
  • Overview of the DebugView Interface
  • Using the DebugView
  • What to do if DebugView is not working?
  • Final Words

 

Video

If you prefer video content, here’s a quick tutorial/overview on my Youtube channel.

IMPORTANT: some parts of the Google Analytics 4 interface have changed (compared to the video below). DebugView can now be found by going to Admin > DebugView.

 

Where can you find DebugView in Google Analytics 4?

First, let’s start with the very basics. You can find it by going to Admin > DebugView on the left side of the GA4 interface. Click it.

That’s the place where your debugging should take place. Do not mix this with the GTM Preview and Debug mode. They are two different beasts.

Google Tag Manager Preview mode is designed for debugging tags that are stored in a GTM container (Universal Analytics, Google Analytics 4, Google Ads, Facebook Pixel, etc.). Google Analytics 4 DebugView is designed for viewing the incoming data in your GA4 property (and only that).

Once you go to the DebugView, most likely, you won’t see any data there (because it displays only those events that contain a special “debug” parameter). In other words, you need to enable the DebugView in your GA4 event tracking to start seeing something.

In the next chapter, we’ll learn how to do that.

 

3 ways to enable DebugView in Google Analytics 4 (for websites)

To enable the DebugView in GA4, you have several options for websites (any of them will work):

  • Enable the GA debugger Chrome extension
  • Have enabled Google Tag Manager’s Preview mode on a page that you’re debugging
  • Send a debug_mode parameter together with an event

If you want to learn how to enable DebugView on mobile apps, please refer to this page.

 

#1. GA Debugger Chrome Extension

Your first option is to install the extension here. Once you do that, then click the extension’s icon (so that you can see the ON ribbon).

From this moment, start interacting with the website, and eventually, you will see your events coming into the DebugView.

Why does this happen? When the Debugger extension is installed and activated, it checks all the requests sent to Google Analytics 4 and adds an additional parameter needed for the DebugView to display the data. That parameter is _dbg:

 

#2. GTM Preview mode automatically makes the data visible in the DebugView

If you have implemented GA4 with Google Tag Manager and are currently debugging the setup with Preview and Debug mode, then there is nothing else you need to do. Just like the GA Debugger Chrome extension, the GTM Preview mode adds an additional parameter that instructs Google Analytics 4 to display that incoming data (from your browser) in the Debug View.

 

#3. debug_mode event parameter

If you want to make the data visible in the DebugView even while the GTM Preview mode is disabled (and you don’t want to install the browser extension), you can add the debug_mode parameter to the events. To enable the parameter, you have to add the debug_mode to the GA4 tag and then enter any value (but “true” without quotation marks makes the most sense).

You have two choices regarding where to include the debug_mode parameter:

  • In the GA4 configuration tag (then all the other events tags that are using it will also inherit the parameter)
  • Or only in certain GA4 event tags. In that case, the debug_mode parameter will be applied only to those tags and only those particular events will be displayed in the DebugView of Google Analytics 4

Let me show you how to do that with the GA4 Configuration Tag.

In Google Tag Manager, you can do that by opening the GA4 Configuration tag and adding the following parameter:

If the debug_mode parameter contains any value, the event will be seen in DebugView. Even if you enter the word “false”, it will still activate the debug view.

The only two ways how to keep it disabled is either not to include the debug_mode parameter or to set its value with an undefined variable. Entering the plain word “undefined” will still activate the debug view.

If you are using a hardcoded gtag.js, here are the instructions on how to include the debug_mode parameter.

And that’s it. Once you enable DebugView (by choosing one of the options above), you can go to GA4 > Admin > DebugView and see what is happening there.

 

Overview of the DebugView Interface

The UI of the DebugView can be split into several sections:

  1. Minutes stream
  2. Seconds stream
  3. Top Events
  4. User Properties
  5. Device Selector

Here you will see the data for the last 30 minutes.

#1. Minutes stream (on the left side of the DebugView) shows a series of circles, one circle for each of the most recent 30 minutes. The number in the circle indicates the count of events received in that minute. Clicking on one of these circles populates the Seconds stream with events that were logged during that minute of time. This allows you to examine the events logged over the last 30 minutes in greater detail.

#2. Seconds stream (middle column) is where the main action/debugging happens. Here you will see a list of events at a more granular level. Each event displays a timestamp that corresponds to the time of its logging on the development device. You can click an event to see a list of its parameters.

The Seconds stream is connected with other parts of the DebugView interface. For example, if you click a circle (with a number) in the Minutes stream, the Seconds stream will scroll down (or up) to the particular events of that minute.

#3. Top Events widget shows the top events that were logged within 30 minutes.

  1. You can click on any of those events, which will work like a quick filter.
  2. Once you do that, you can choose a specific parameter…
  3. … and then you will see the timestamps of each parameter that was sent with that particular event in the last 30 minutes.
  4. Also, you can click on a particular timestamp and then see all the parameters of that event.

That is very useful to see how (and when) the parameter values changed with that event.

#4. User Properties shows the latest state of the set of User Properties for the currently selected device. You can click the little clock icon to see how values changed in the last 30 minutes.

#5. Device Selector lets you select which particular device’s data you want to debug. The selector is located at the top left corner of the DebugView.

If multiple visitors have enabled the debug view (e.g. they all have enabled the Chrome extension), you will see multiple devices there, and it might require some time to find yourself. This especially applies to my blog, when many of my readers have enabled the GA Debugger Extension, and I have to guess which device (out of the other 10+) is mine 🙂

 

Using the DebugView

When you start seeing data in the DebugView, you can click on every event, and then a list of parameters will be displayed.

Click on that parameter to see the value that GA4 received.

If you are getting a lot of events, you can click anywhere on the white background of the middle column (Seconds stream), and it will pause.

Blue icons represent events, green icons represent conversions, and orange icons represent user properties.

NOTE: sometimes, it takes longer for the data to come in.

I have noticed some delays between the event actually happening on a website and then appearing in DebugView. Sometimes, I have to wait for several minutes until the events come in. That’s a bit unfortunate, and hopefully, the team behind Google Analytics 4 will improve this in the future. But right now, please be patient.

 

What to do if DebugView is not working?

Sometimes, it just doesn’t start. You try your best but still cannot see your device’s data. What to do?

There are several things you could check, and I have explained them here.

 

DebugView in Google Analytics 4: Final Words

Hands down, this feature is amazing. After years of using previous versions of Google Analytics, it was really annoying to wait for the e-commerce data to appear in the reports to debug it. When I was sending some non-event, non-pageview, and non-goal data, I always had to waste my time.

Debugging is super important, and now it has become a much quicker process for Google Analytics 4. This is a very welcome improvement in the Google Analytics space.

 

Julius Fedorovicius
In Google Analytics Tips
23 COMMENTS
Marco
  • Jan 10 2021
  • Reply

Hi, thanks a lot for your guide. I am facing a difficult problem I dunno how to solve it.
I have two users working on website. Wirking I mean with gtm and Ga.
All is fine except for Debug view menu
One user is not able to see data. How is possible? It is like no events are received.
Thanks

    Julius Fedorovicius
    • Jan 11 2021
    • Reply

    Does that user have the GTM preview mode enabled? Or GA debugger? Or manually sending the parameter?

Salaheddine F. Chaabi
  • Jan 16 2021
  • Reply

Hi Julius,
first of all, thank of behalf of my whole team on the amazing work you are doing schooling us on the GTM subject.

I have a big issue however: I proceeded to install GTM on my web site via the plug in, on the same web site many months prior I've also installed Google Analytics with Google Site kit.

Today I followed the step by step tutorial to install GA4 on my Website you posted: youtu.be/_wq5nfKQ3DM

And once I launched the preview mode, I could see the tag's Fired properly on GTM.
On GA4 unfortunately I don't know why in the DebugView no data whatsoever gets shown, to make matters even worse in the "Device Selector" I see "No Device Available".

May I have done something wrong in your opinion?

Thank you so much for your time and effort.

    Joy
    • Mar 10 2021
    • Reply

    Hi Julius,

    Encountered the same problem today. The DebugView was working fine on GA4 until I copied the GTM code to our site. Right now in DebugView there is no data display somehow. Have you experienced a similar issue before?

    Thank you for all the helpful contents!

      Eda
      • Aug 22 2022
      • Reply

      Hi Julius,

      I'm still experiencing these said issues as of today. I've followed your guides step by step.

      The oddest thing is, I've done the same thing to 2 accounts. In account A it works perfectly. In account B, no data is being sent at all eventhough GTM says the tag fired succesfully.

      I've checked my filters, they're now inactive for the sake of not bypassing data. Is this a bug?

        Julius Fedorovicius
        • Oct 7 2022
        • Reply

        There have been more bugs recently when debugview just does not work for some reason in some GA4 properties. And then it starts working magically the next day.

Daneil Coll
  • Sep 13 2021
  • Reply

Hi Julius, i Have a doubt about how to report error events in debugger, how i should send them to label them as errors?

Thank U.

Ur content is awesome!!!

    Julius Fedorovicius
    • Sep 14 2021
    • Reply

    You can send them any way you want. E.g. event name might be "error".

flopmaster
  • Nov 8 2021
  • Reply

Having the same issue. No data is being shown on debug view of GA4. I have tried all 3 methods. GA Configuration tag is firing appropriately.

My GA4 debug view simply says no devices available.

Thanks in advance!

    Julius Fedorovicius
    • Nov 9 2021
    • Reply

    Hi, check your filters in the GA4 property

Martin Burkhardt
  • Jun 24 2022
  • Reply

Hi all

I found out that when you are doing debug_mode=true or debug_mode=false in the settings tag, the Debugger shows the traffic. If you remove the whole parameter from the settings tag, the traffic is not shown anymore. true or false has no effect on the parameter. seems to be a bug.

Kind regards

Martin

    Julius Fedorovicius
    • Jul 13 2022
    • Reply

    Not a bug, expected behavior. debug_mode containing any value is counted as enabled. To disable it, you have to send either undefined value or remove the parameter at all.

BB
  • Oct 31 2022
  • Reply

Hi, I would like to know that can we view the history of debug view? how can I get them, or it is just the real-time report that cannot view the history?

    Julius Fedorovicius
    • Oct 31 2022
    • Reply

    Only data from the last 30 minutes can be seen there

Sam
  • Nov 9 2022
  • Reply

Hi Julius,

Thank you for this , i have tried #3. debug_mode event parameter method to enable debug mode , however official website says If debug_mode is true (either on the Configuration Tag or single tags/events), all consequent events (i.e., ecomm transactions) will not appear on Google Analytics reports.

What exactly is this? are they talking about only real time report?

Rajendra
  • Dec 7 2022
  • Reply

I am unable to view the debug view on my ga 4 pages.
It's only showing this "Configure settings has moved to Admin".

    Julius Fedorovicius
    • Dec 7 2022
    • Reply

    Well, it's telling you what to do pretty clearly. Go to admin

      Rajendra
      • Dec 7 2022
      • Reply

      But I can't find the configure settings there.

        Julius Fedorovicius
        • Dec 7 2022
        • Reply

        What settings?

        You need to go to Admin > DebugView and see the incoming data there

          Rajendra
          • Dec 7 2022

          Got it Thanks!

Carlos Hartley
  • Jan 4 2023
  • Reply

For some reson in debugview I am getting double conversions is there a reason for this?

Ivo
  • Jan 10 2023
  • Reply

Thanks for this explanation. Really valuable.

I have just one strange behaviour. Among the devices, I see many "Apple" devices which trigger Clicks and User engagement events, when I open them, they show as Page location to be analytics.google.com. As if events are coming from the very page I am watching the debugviewer. Is this possible?

Eline
  • Jan 25 2023
  • Reply

Hi,

In de GA DebugView i see different parameters. But i miss: source and medium. Is it possible to get this parameters to?

Thank You

Eline.

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

 

Hi, I'm Julius Fedorovicius and I'm here to help you learn Google Tag Manager and Google Analytics. Join thousands of other digital marketers and digital analysts in this exciting journey. Read more
Analytics Mania
  • Google Tag Manager Courses
  • Google Tag Manager Recipes
  • Google Tag Manager Resources
  • Google Tag Manager Community
  • Login to courses
Follow Analytics Mania
  • Subscribe to newsletter
Recent Posts
  • Track Videos with Google Analytics 4 and Google Tag Manager
  • Debugging Incorrect & Missing Google Analytics 4 Transactions
  • A Guide to Referrer in Google Tag Manager
Analytics Mania - Google Tag Manager and Google Analytics Blog | Privacy Policy
Manage Cookie Settings