import { isProduction } from "./env" ; export const addAnalyticsEvent = ( eventName , category , label ) => { if ( ! isProduction ( ) ) { return ; } window . gtag ( "event" , eventName , { event_category : category , event_label : label , value : 1 , } ) ; } ; export const addConnectEvent = ( label , account ) => { const accountStr = account . replace ( "0x" , "" ) ; addAnalyticsEvent ( "connectAccount" , label , accountStr ) ; } ;