Snowplow Javascript Tracker 2.7.0 released

Hello @Koen87,

Yes, JS Tracker has such functionality. You can filter errors by using predicate function as first argument to enableErrorTracking:

snowplow_name_here('enableErrorTracking', function (errorEvent) {
  return !errorEvent.hasOwnProperty('message')
})

Where errorEvent is standard ErrorEvent, you can filter it by other properties.

In fact modern browsers should support error event handler. What exact versions of mobile OSes send these empty exceptions? Do they have anything in other columns (fileName, lineColumn)? Error event handler was not standardized for a long time, therefore for some browsers there could be another ways to track exceptions.

On the other hand if these browsers are not very modern - many exceptions there may be sensible as they likely don’t support other APIs.

3 Likes