Revert "Track event when someone previews basic view"

This reverts commit 77d96032bf.
This commit is contained in:
Chris Hill-Scott
2018-08-08 08:49:16 +01:00
parent 6a06d4d714
commit 7b1d4136bf
6 changed files with 30 additions and 71 deletions

View File

@@ -0,0 +1,22 @@
(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);