Porting cloudflare rum to umami
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