mozilla / bedrock

Making mozilla.org awesome, one pebble at a time
https://www.mozilla.org
Mozilla Public License 2.0
1.16k stars 913 forks source link

[ga4 investigation] Unknown event triggers #12694

Open maureenlholland opened 1 year ago

maureenlholland commented 1 year ago

Description

GA4 defines what it thinks are events automatically but we have a number of strange events recorded (these might be triggering a limit in our service level causing a pause in data export). We should investigate if we can identify what triggers GA4 to record these events or if there is a way to ignore them as a group

Screen Shot 2023-02-02 at 5 12 06 PM

if you look at the Events section in Admin, we are collecting a huge number of garbage "Events", so that we're collecting almost 200 Events total. The number of instances of each "Event" is very low, but maybe it's a problem because there are all of these individual "Events"?


Success Criteria

alexgibson commented 1 year ago

The first one in this list almost looks like an attempted XSS

alexgibson commented 1 year ago

Some of these are almost certainly user/script generated. A few very suspect examples:

maureenlholland commented 1 year ago

I'm unable to recreate this, unfortunately. I can mess around with the dataLayer values but I don't know how to get those triggered to become event data that appears in GA4.

maureenlholland commented 1 year ago

Worth noting there are a few strange Event Actions recorded in UA: Event Action: Non-Interactionst71yt;//';//";//%>?>o8e71'/"<qi5ze but not nearly as many as in GA4

stephaniehobson commented 1 year ago

I found a few few references to event tracking spam, so it seems like this is not just an us thing.

There are also lots of articles on referrer spam and how to filter it.

But none of these tools are available in GA4 yet.