old_contents: import ReactGA from 'react-ga'
  
  const isProduction = process.env.NODE_ENV === 'production'
  
  export const initGA = () => {
    ReactGA.initialize('UA-108480205-1')
  }
  
  export const logPageView = () => {
    if (!isProduction) return
    const page = window.location.pathname
    ReactGA.set({ page })
    ReactGA.pageview(page)
  }
  
  export const logEvent = (category = '', action = '') => {
    if (!isProduction) return
    if (category && action) {
      ReactGA.event({ category, action })
    }
  }
  
  export const logException = (description = '', fatal = false) => {
    if (!isProduction) return
    if (description) {
      ReactGA.exception({ description, fatal })
    }
  }
  
new_contents: import ReactGA from 'react-ga'
  
  let isInitialized = false
  
  export const initGA = () => {
    if (process.env.NODE_ENV === 'production') {
      ReactGA.initialize('UA-108480205-1')
      isInitialized = true
    }
  }
  
  export const logPageView = () => {
    if (!isInitialized) return
    const page = window.location.pathname
    ReactGA.set({ page })
    ReactGA.pageview(page)
  }
  
  export const logEvent = (category = '', action = '') => {
    if (!isInitialized) return
    if (category && action) {
      ReactGA.event({ category, action })
    }
  }
  
  export const logException = (description = '', fatal = false) => {
    if (!isInitialized) return
    if (description) {
      ReactGA.exception({ description, fatal })
    }
  }
  
subject: Modify ga