_onPageUnload() {
    if (!this._isInitialized || _isUnloaded) {
      return;
    } // only run unload once, even if fired from multiple events

    _isUnloaded = true;
    Logger.info('Unloading Metrics');

    Storage.setItem('pageUnloaded', Date.now());

    VideoMetrics.runUnloadEvents();
    this.fireContentPageConsumed(Router.currentRoute);
    this.fireUserSession();
  }
/**
   * Fires when the Microzine is about to be torn down and closed completely (i.e. the browser window is being closed)
   * @private
   * @returns {void}
   */
Fires when the Microzine is about to be torn down and closed completely
@private
@returns {void}
Fires when the Microzine is about to be torn down and closed completely @private @returns { void }
_onPageUnload() {
    if (!this._isInitialized || _isUnloaded) {
      return;
    } 
    _isUnloaded = true;
    Logger.info('Unloading Metrics');
    Storage.setItem('pageUnloaded', Date.now());
    VideoMetrics.runUnloadEvents();
    this.fireContentPageConsumed(Router.currentRoute);
    this.fireUserSession();
  }
_onPageUnload ( ) { if ( ! this . _isInitialized || _isUnloaded ) { return ; } _isUnloaded = true ; Logger . info ( 'Unloading Metrics' ) ; Storage . setItem ( 'pageUnloaded' , Date . now ( ) ) ; VideoMetrics . runUnloadEvents ( ) ; this . fireContentPageConsumed ( Router . currentRoute ) ; this . fireUserSession ( ) ; }
Fires when the Microzine is about to be torn down and closed completely (i.e.
Fires when the Microzine is about to be torn down and closed completely ( i . e .
// only run unload once, even if fired from multiple events