examples/redux-firestore/src/utils/analytics.js
function initGA() {
  if (analyticsTrackingId) {
    ReactGA.initialize(analyticsTrackingId)
    ReactGA.set({
      appName: environment || 'Production',
      appVersion: version
    })
  }
}
function initGA() {
  if (analyticsTrackingId) {
    ReactGA.initialize(analyticsTrackingId)
    ReactGA.set({
      appName: environment || 'Production',
      appVersion: version
    })
  }
}
function initGA ( ) { if ( analyticsTrackingId ) { ReactGA . initialize ( analyticsTrackingId ) ReactGA . set ( { appName : environment || 'Production' , appVersion : version } ) } }
Initialize Google Analytics if analytics id exists and environment is
production
Initialize Google Analytics if analytics id exists and environment is production