src/google_analytics/ga-feeder.js
/**
   *
   * Fetcher for the visitors on /apptweak.com.
   *
   * @param {Object} config - The config require for the fetch
   * @return {Promise} - The promisified geckoFormatted result of the fetch
   *
   */
Fetcher for the visitors on /apptweak.com.
@param {Object} config - The config require for the fetch
@return {Promise} - The promisified geckoFormatted result of the fetch
Fetcher for the visitors on / apptweak . com . @param { Object } config - The config require for the fetch @return { Promise } - The promisified geckoFormatted result of the fetch
async fetchRealTimeVisitors(config) {
    const {
      rows: [[activeUsers=0]],
    } = await this.requestGAFor({metrics: 'rt:activeUsers'}, '/realtime');
    return GeckoBoardFormatter.toNumberAndSecondStat({
      'value': Number.parseInt(activeUsers),
    });
  }
async fetchRealTimeVisitors ( config ) { const { rows : [ [ activeUsers = 0 ] ] , } = await this . requestGAFor ( { metrics : 'rt:activeUsers' } , '/realtime' ) ; return GeckoBoardFormatter . toNumberAndSecondStat ( { 'value' : Number . parseInt ( activeUsers ) , } ) ; }
Fetcher for the visitors on /apptweak.com.
Fetcher for the visitors on / apptweak . com .