import { NextWebVitalsMetric } from 'next/app' ; export function gtagReportWebVitals ( { id , name , label , value , } ) { window . gtag ( 'event' , name , { event_category : label === 'web-vital' ? 'Web Vitals' : 'Next.js custom metric' , value : Math . round ( name === 'CLS' ? value * 1000 : value ) , event_label : id , non_interaction : true , } ) ; }