examples/redux-firestore/src/utils/analytics.js
function setGAUser(auth) {
  if (auth && auth.uid) {
    ReactGA.set({ userId: auth.uid })
  }
}
function setGAUser(auth) {
  if (auth && auth.uid) {
    ReactGA.set({ userId: auth.uid })
  }
}
function setGAUser ( auth ) { if ( auth && auth . uid ) { ReactGA . set ( { userId : auth . uid } ) } }
Set user auth data within Google Analytics
@param {Object} auth - Authentication data
@param {String} auth.uid - User's id
Set user auth data within Google Analytics