build/static/js/main.eb6555a5.js
/**
 * modalview:
 * a proxy to basic GA pageview tracking to consistently track
 * modal views that are an equivalent UX to a traditional pageview
 * @param  {String} modalName e.g. 'add-or-edit-club'
 * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
 */
a proxy to basic GA pageview tracking to consistently track
modal views that are an equivalent UX to a traditional pageview
@param  {String} modalName e.g. 'add-or-edit-club'
@param {Array} trackerNames - (optional) a list of extra trackers to run the command on
a proxy to basic GA pageview tracking to consistently track modal views that are an equivalent UX to a traditional pageview @param { String } modalName e . g . ' add - or - edit - club ' @param { Array } trackerNames - ( optional ) a list of extra trackers to run the command on
function modalview(rawModalName, trackerNames) {
  if (!rawModalName) {
    Object(__WEBPACK_IMPORTED_MODULE_4__utils_console_warn__["a" ])('modalName is required in .modalview(modalName)');
    return;
  }
  var modalName = Object(__WEBPACK_IMPORTED_MODULE_1__utils_removeLeadingSlash__["a" ])(Object(__WEBPACK_IMPORTED_MODULE_2__utils_trim__["a" ])(rawModalName));
  if (modalName === '') {
    Object(__WEBPACK_IMPORTED_MODULE_4__utils_console_warn__["a" ])('modalName cannot be an empty string or a single / in .modalview()');
    return;
  }
  if (typeof ga === 'function') {
    var path = "/modal/".concat(modalName);
    _gaCommand(trackerNames, 'send', 'pageview', path);
    if (_debug) {
      Object(__WEBPACK_IMPORTED_MODULE_5__utils_console_log__["a" ])('called ga(\'send\', \'pageview\', path);');
      Object(__WEBPACK_IMPORTED_MODULE_5__utils_console_log__["a" ])("with path: ".concat(path));
    }
  }
}
function modalview ( rawModalName , trackerNames ) { if ( ! rawModalName ) { Object ( __WEBPACK_IMPORTED_MODULE_4__utils_console_warn__ [ "a" ] ) ( 'modalName is required in .modalview(modalName)' ) ; return ; } var modalName = Object ( __WEBPACK_IMPORTED_MODULE_1__utils_removeLeadingSlash__ [ "a" ] ) ( Object ( __WEBPACK_IMPORTED_MODULE_2__utils_trim__ [ "a" ] ) ( rawModalName ) ) ; if ( modalName === '' ) { Object ( __WEBPACK_IMPORTED_MODULE_4__utils_console_warn__ [ "a" ] ) ( 'modalName cannot be an empty string or a single / in .modalview()' ) ; return ; } if ( typeof ga === 'function' ) { var path = "/modal/" . concat ( modalName ) ; _gaCommand ( trackerNames , 'send' , 'pageview' , path ) ; if ( _debug ) { Object ( __WEBPACK_IMPORTED_MODULE_5__utils_console_log__ [ "a" ] ) ( 'called ga(\'send\', \'pageview\', path);' ) ; Object ( __WEBPACK_IMPORTED_MODULE_5__utils_console_log__ [ "a" ] ) ( "with path: " . concat ( path ) ) ; } } }
modalview:
 a proxy to basic GA pageview tracking to consistently track
 modal views that are an equivalent UX to a traditional pageview
 @param  {String} modalName e.g.
modalview : a proxy to basic GA pageview tracking to consistently track modal views that are an equivalent UX to a traditional pageview @param { String } modalName e . g .
/* default */ /* default */ /* default */ /* default */ /* default */ /* default */