mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-28 03:12:04 -04:00
Revert "Track event when someone previews basic view"
This reverts commit 77d96032bf.
This commit is contained in:
22
app/assets/javascripts/errorTracking.js
Normal file
22
app/assets/javascripts/errorTracking.js
Normal 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);
|
||||
Reference in New Issue
Block a user