In the Google Chrome Developer tools, I have output from the Google Analytics debugger extension that dumps too much output into my console.

enter image description here

I am aware that there is a filter to allow you to filter messages. However, a large part of what the Google Analytics debugger outputs are statements enclosed by console.group and console.groupend.

Second image showing filtered console

enter image description here

As you can see, while a bunch of text inside the collapsed groups is hidden, the groups themselves are not, and there are currently a few hundred of those that are making it difficult for me to find my debug messages

While I can use the filter to filter out the text in the group, is there a way to filter out the group bars as well?

  • Is your webpage loading analytics multiple times? Maybe via frames or other references that would cause it to load too many times?
    – HackSlash
    Feb 28, 2018 at 17:29

4 Answers 4


No one actually answered your question, and the answer is that it's an open bug.


  • also please star the chrome bug an comment so it gets more visibility Mar 18, 2019 at 1:05

I'm not sure what version of Chrome you're using but mine has an option in the console of whether or not to group similar.

chrome console

If I disable that option it won't show the groups. You could also try adjusting which messages are shown (verbose, info, error, warning, errors) with that "default levels" drop down.

  • While this works without a filter, this doesn't appear to work if you specify a filter string. The groups reappear and the problem is when many of them are empty, they clutter up the console output, as the OP says.
    – MSC
    Jul 21, 2019 at 2:47

you can filter out console message based on their source. In your case, you can remove all the entries generated from analytics.debug.js. I used the following filter to accomplish this:


If you can execute the below code before google analytics it should do the trick. It's basically a monkey patch that just appends the group name as hidden text in front of every line logged out in that group. So when you filter it picks up the hidden text.

let groupFunc = console.group;
let logFunc = console.log;
let groupEnd = console.groupEnd();

console.group = (...groupArgs) => {
  console.log = (...args) => {
    logFunc(`%c ${groupArgs[0]}`, `color: transparent; font-size: 0px`, ...args)
  groupEnd = (...args) => {
    console.log = logFunc;

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .