export type GoogleAnalyticsEvent = { category : string ; action : string ; label ? : string ; value ? : number ; } ; export function log ( { category , action , label , value } ) { if ( window . ga != null ) { window . ga ( "send" , "event" , category , action , label , value ) ; } else { } }