Exclude Javascript Event from tracking

I am using Matomo on a GatsbyJS web site and each page load tracks two actions, one for the page load and one of the JavaScript load. I want to ignore the JS load event, because it is irrelevant and it messes up the bounces metric.

Here’s a screenshot of the event I want to exclude. Let me know if you know how to do this.

anybody have an idea how to disable tracking of this event?