(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);

(function(Modules) {
  "use strict";

  Modules.TrackError = function() {

    this.start = function(component) {

      if (!('ga' in window)) return;

      ga(
        'send',
        'event',
        'Error',
        $(component).data('error-type'),
        $(component).data('error-label')
      );

    };

  };

})(window.GOVUK.Modules);

Fix exception in track-error js module that broke our re-upload button
Fix exception in track-error js module that broke our re-upload button
