(function() { var script = document.createElement('script'); script.src = 'https://cdn.jsdelivr.net/npm/web-vitals/dist/web-vitals.base.iife.js'; script.onload = function() { function gaCWV({name, delta, value, id}) { if(typeof gtag != 'undefined') { gtag('event', name, { value: delta, metric_id: id, metric_value: value, metric_delta: delta, send_to: 'builder' }); } } if(typeof webVitals != 'undefined') { webVitals.getCLS(gaCWV); webVitals.getFID(gaCWV); webVitals.getLCP(gaCWV); webVitals.getFCP(gaCWV); webVitals.getTTFB(gaCWV); } } document.head.appendChild(script); }())