2017-07-20 11:22:09 +01:00
|
|
|
(function(Modules) {
|
|
|
|
|
"use strict";
|
|
|
|
|
|
2017-07-20 11:28:26 +01:00
|
|
|
Modules.TrackError = function() {
|
2017-07-20 11:22:09 +01:00
|
|
|
|
|
|
|
|
this.start = function(component) {
|
|
|
|
|
|
|
|
|
|
if (!ga) return;
|
|
|
|
|
|
|
|
|
|
ga(
|
|
|
|
|
'send',
|
|
|
|
|
'event',
|
|
|
|
|
'Error',
|
|
|
|
|
$(component).data('error-type'),
|
|
|
|
|
$(component).data('error-label')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
})(window.GOVUK.Modules);
|