Files
notifications-admin/app/assets/javascripts/errorTracking.js
2018-08-08 08:55:06 +01:00

23 lines
331 B
JavaScript

(function(Modules) {
"use strict";
Modules.TrackError = function() {
this.start = function(component) {
if (!ga) return;
ga(
'send',
'event',
'Error',
$(component).data('error-type'),
$(component).data('error-label')
);
};
};
})(window.GOVUK.Modules);