client/public/src/models/AppStateModel.js
/**
   * @method _sendGA
   * @description send a google analytics event if pathname has changed
   */
@method _sendGA
@description send a google analytics event if pathname has changed
@method _sendGA @description send a google analytics event if pathname has changed
_sendGA() {
    if( !window.gtag || !config.gaCode ) return console.warn('No global gtag variable set for analytics events');
    if( this.lastGaLocation === window.location.pathname ) return;
    this.lastGaLocation = window.location.pathname;
    gtag('config', config.gaCode, {
      page_path: window.location.pathname
    });
  }
_sendGA ( ) { if ( ! window . gtag || ! config . gaCode ) return console . warn ( 'No global gtag variable set for analytics events' ) ; if ( this . lastGaLocation === window . location . pathname ) return ; this . lastGaLocation = window . location . pathname ; gtag ( 'config' , config . gaCode , { page_path : window . location . pathname } ) ; }
@method _sendGA
 @description send a google analytics event if pathname has changed
@method _sendGA @description send a google analytics event if pathname has changed