Revert "Merge pull request #3238 from alphagov/cookies-update"

This reverts commit eec4bec761, reversing
changes made to 64480e2fff.
This commit is contained in:
Leo Hemsted
2020-01-15 14:40:48 +00:00
parent 04b9fa8927
commit 66db735e09
36 changed files with 116 additions and 1610 deletions

View File

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