Files
notifications-admin/app/assets/javascripts/errorTracking.js
T

25 lines
554 B
JavaScript
Raw Normal View History

(function(window) {
"use strict";
2025-10-06 09:38:54 -04:00
window.NotifyModules['track-error'] = function() {
2025-10-06 09:38:54 -04:00
this.start = function(element) {
var component = $(element);
2025-10-06 09:38:54 -04:00
// Track error to analytics if available
if (window.NotifyModules && window.NotifyModules.analytics && window.NotifyModules.analytics.trackEvent) {
window.NotifyModules.analytics.trackEvent(
'Error',
component.data('error-type'),
{
'label': component.data('error-label')
}
);
}
};
};
})(window);