Parse sendBeacon data in Express

I’m trying to start logging my own WebVitals. The simple use-case in their example docs looks like this: function sendToAnalytics(metric) { // Replace with whatever serialization method you prefer. // Note: JSON.stringify will likely include more data than you need. const body = JSON.stringify(metric); // Use `navigator.sendBeacon()` if available, falling back to `fetch()`. (navigator.sendBeacon &&… Read More Parse sendBeacon data in Express