(function(global) {
  'use strict';
  var GOVUK = global.GOVUK || {};
  var $ = global.jQuery;

  GOVUK.autoSubmitForm = {
    attach: function () {
        var destinationLink = document.getElementById("saml-response-form");
        ga("govuk_shared.linker:decorate", destinationLink);
        $('form.js-auto-submit').submit();
    }
  };

  global.GOVUK = GOVUK;
})(window);

(function(global) {
  'use strict';
  var GOVUK = global.GOVUK || {};
  var $ = global.jQuery;

  GOVUK.autoSubmitForm = {
    attach: function () {
        var destinationLink = $('#saml-response-form')[0];
        ga("govuk_shared.linker:decorate", destinationLink);
        $('form.js-auto-submit').submit();
    }
  };

  global.GOVUK = GOVUK;
})(window);

Implement cross domain Google Analytics tracking for Verify
TfEzFC4W: Implement cross domain Google Analytics tracking for Verify

Use jQuery rather than native DOM to get SAML response form, to stay
consistent with rest of frontend.
