Evan Boehs website Mastodon PGP Key email A drawing of an astronaut in space United States is charting waters

Porting cloudflare rum to umami

in
garden
tags

The cloudflare script: https://static.cloudflareinsights.com/beacon.min.js imports the following functions from the web-vitals package: onTTFB, onLCP, onFID, onFCP, onCLS

Under the page load time section, the following info is reported: Page Load, DNS, TCP, Request, Response, Processing.

Under the core web vitals section, LCP, FID and CLS are reported.

Obviously, the LCP, FID and CLS metrics are reported by the respective web vitals functions.

The rest are documented here: https://developers.cloudflare.com/analytics/web-analytics/understanding-web-analytics/page-load-time-summary/

This data can be found with the window.performance.getEntriesByType('navigation')[0] API. The one confusing bit is the Page load API is undocumented

https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/dev-guides/hh673552(v=vs.85)?redirectedfrom=MSDN

/node/porting-cloudflare-rum-to-umami.html