code: function checkAnalytics() {
    if (_enableCheck && typeof window[_gaGlobal] === 'function') {
      for (var i = 0; i < _analyticsQueue.length; i++) {
        _analyticsQueue[i].call();
      }
  
      // override push to execute the command immediately from now on
      _analyticsQueue.push = function (fn) {
        fn.call();
      };
  
      // turn check into NOOP
      _enableCheck = false;
    }
  
    utils.logMessage('event count sent to GA: ' + _eventCount);
  }
docs: Check if gaGlobal or window.ga is defined on page. If defined execute all the GA commands