Open pacholoamit opened 8 months ago
We could use this one for v1 and v2 to track error by try catching them. Will implement this after ticket is merged in staging
https://github.com/orgs/MediaJel/projects/5/views/1?filterQuery=&pane=issue&itemId=57175298
// version 1
window.tracker('trackError','Cannot get user object','shop.js')
//version 2
window.tracker('trackError', {
message: 'Cannot get user object',
filename: 'shop.js',
error: "test error"
})
Update: PR in progress
Lets try and use this approach for Error tracking
For discussion: Instead of rolling this out to all of our clients on the mediajel-tracker. We can roll this out in the frictionless-repo
Update:
Description
We want to be able to find a way to track client-side errors from our tag
For version 1:
For version 2: Link to reference: https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/javascript-trackers/web-tracker/tracking-events/errors/?platform=js