declare global { interface Window { gtag : ( param1 : string , param2 : string , param3 : object ) => void ; } } export const pageview = url => { window . gtag ( 'config' , process . env . NEXT_PUBLIC_GOOGLE_ANALYTICS , { page_path : url , } ) ; } ; export const event = ( { action , params } ) => { window . gtag ( 'event' , action , params ) ; } ;