MisterPhilip / omnibug

Omnibug is an extension for Firefox and most Chromium-based browsers to ease implementing and debugging digital marketing tools.
https://omnibug.io/
MIT License
93 stars 42 forks source link

GA4 - Batched Events Missing / Not Separated w/Debugger Off #241

Closed flist87 closed 8 months ago

flist87 commented 8 months ago

Describe the bug When GA4 is not in debug mode, it starts batching events together, for those that are within close timing proximity.

This makes sense from a site performance perspective, lower connections/requests of the browser, however, Omnibug isn't expecting batched GA4 events. It only sees the first hit and name of that hit, i.e. page_view.

To Reproduce Steps to reproduce the behaviour:

  1. Go to 'hellyhansen.com/en_us/'
  2. Click on dev/inspection drawer,
  3. Scroll down to see GA4 hits, filtered with 'G-' and ensure GA4 is ticked on
  4. See first hit, page_view, with (hopefully) no other events logged in Omnibug.
  5. Now actually inspect the measurement protocol hit, it has multiple events, i.e. vie_promotion (hopefully)

Expected behaviour I expect Omnibug to know we are NOT in debug mode and for it to know there's a chance GA4 might also append other event data/info. It needs to break down the hit string/params to see there's multiple (I think en=?) event names being sent?

Screenshots If applicable, add screenshots to help explain your problem. Screenshot 2023-10-20 at 11 06 01

Screenshot 2023-10-20 at 11 11 55

Screenshot 2023-10-20 at 11 14 28

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

MisterPhilip commented 8 months ago

Yeah, this is on the list for v2 (see #233). Omnibug does parse out multiple events in the full window, just not in the individual row. image

I've played around with adding the event count in the pill but it got in the way more than it helped. I do like ercanyuz's idea with hovering so you can quickly see them. I can probably have that added before v2.