Real user monitoring

Also known as: RUM

On this page 7

Real user monitoring (RUM) is a web performance technique that collects timing and experience data from the browsers of actual visitors while they use a site, then aggregates it to show how fast and stable pages are under real conditions. Because each sample comes from a genuine device, network and location, RUM produces field data, as opposed to the lab data generated by scripted tests.

In web performance practice, RUM answers questions that no test machine can: how the 75th percentile of mobile users experiences a checkout page, whether a release slowed down visitors in one country, or which device class suffers the worst interaction delays.

How real user monitoring collects data

Real user monitoring works by running a small JavaScript beacon on every page. The script reads browser performance interfaces, waits until the page has produced its key metrics, and sends a compact payload to a collection endpoint, usually with navigator.sendBeacon or fetch with keepalive so the data survives page unload.

The raw signals come from standardized browser APIs defined by the W3C Web Performance Working Group. The Navigation Timing and Resource Timing interfaces describe network phases, while PerformanceObserver exposes paint, layout shift and event timing entries. The backend then enriches each sample with device, browser, country and connection type and stores it for aggregation.

Browser APIWhat it measuresDerived metrics
Navigation TimingDNS, connection, request and response phasesTTFB, DOM content loaded
Resource TimingTiming of each image, script and stylesheetSlow third-party resources
Paint TimingFirst paint and first contentful paintFCP
Largest Contentful Paint APIRender time of the largest visible elementLCP
Layout Instability APIUnexpected element shiftsCLS
Event Timing APIDelay from input to next paintINP
Long Tasks APIMain-thread tasks longer than 50 msScript blocking hot spots
Browser interfaces commonly used by a RUM script

Metrics and percentiles in RUM reporting

RUM reports distributions, not single numbers, because field performance varies widely between a new flagship phone on fiber and an older device on a congested mobile network. The industry convention, adopted by Core Web Vitals, is to judge a page by its 75th percentile (p75), which covers most visitors without letting a few extreme sessions dominate.

MetricGoodNeeds improvementPoor
LCP2.5 s or less2.5 to 4.0 sOver 4.0 s
INP200 ms or less200 to 500 msOver 500 ms
CLS0.1 or less0.1 to 0.25Over 0.25
Core Web Vitals thresholds evaluated at p75

Mature teams also watch p95 or p99 to detect long-tail problems and segment results by page template, device class and geography. An average hides these patterns, so means are rarely meaningful for latency data, which is typically right-skewed.

Real user monitoring compared with synthetic monitoring

RUM and synthetic monitoring are complementary rather than competing. Synthetic tools load pages from controlled machines on a schedule, which gives repeatable, comparable results and works before any user arrives. RUM reflects reality but needs traffic and cannot isolate a single variable as cleanly.

AspectReal user monitoringSynthetic monitoring
Data sourceActual visitor sessionsScripted test agents
ConditionsEvery real device and networkFixed, chosen profiles
Needs trafficYes, results scale with visitsNo, runs on a schedule
Interaction metricsMeasures real INPApproximates with Total Blocking Time
Diagnostic detailBroad but shallow per sessionDeep traces, waterfalls, filmstrips
Best useMeasuring true user impactRegression testing and alerting
Differences between field and lab monitoring

A practical workflow uses RUM to find the problem and synthetic tests or browser profiling to diagnose and verify the fix. Lab tools also serve in CI pipelines, where a performance budget can block a slow build before it reaches users.

Implementing RUM in practice

Teams implement RUM either with a commercial or open-source service or with a self-built beacon based on a library such as the web-vitals package. The choice depends on required segmentation, data retention and how much engineering time is available for dashboards and storage.

  1. Load the beacon asynchronously and late, so the measurement itself does not become a render-blocking resource.
  2. Report metrics on visibilitychange, because LCP, CLS and INP can only be final when the page is hidden or closed.
  3. Attach attribution data, such as the LCP element selector or the slow interaction target, to make findings actionable.
  4. Tag each sample with the release version to correlate regressions with deployments.
  5. Apply sampling on high-traffic sites, often 1 to 10 percent of sessions, to control cost while keeping statistical power.

Single-page applications need extra care. Soft navigations do not trigger a new page load, so the script must mark route changes explicitly, or the metrics will describe only the first view of a long session.

Limitations, privacy and common pitfalls

RUM data is only as good as its coverage. Visitors who leave before the beacon fires, browsers that lack certain APIs and users with content blockers are underrepresented, which can make performance look better than it really is. Some metrics, including LCP and INP, are not exposed by every browser engine, so cross-browser comparisons need caution.

Because RUM collects data from people, it falls under privacy law such as the GDPR. Responsible setups avoid personal data in URLs, truncate IP addresses, respect consent choices where required and keep retention periods short.

PitfallConsequenceRemedy
Reporting averagesSlow users hidden in the meanReport p75 and p95
No segmentationMobile issues diluted by desktop trafficSplit by device, country, template
Ignoring SPA routesOnly the first view is measuredInstrument soft navigations
Low traffic pagesNoisy, unstable percentilesAggregate over longer windows
Personal data in payloadsPrivacy and compliance riskStrip query strings and identifiers
Typical RUM pitfalls and remedies

The short version

Real user monitoring means measuring a website’s speed on the devices of the people who actually use it. A tiny script quietly notes how long each page took to appear and respond, then reports those numbers back.

It is like asking every customer how long they waited in line, instead of timing the line once yourself on a quiet morning. The answers show the real experience, including the slow days and the crowded hours.

Where it makes a difference

An online furniture retailer sees conversion rates fall on mobile, yet its lab tests on a fast office connection show an LCP of 1.8 seconds, comfortably within the good range. The team adds a RUM beacon based on the web-vitals library and samples 10 percent of sessions.

After two weeks, the field data tells a different story. Product pages reach a p75 LCP of 4.6 seconds on mid-range Android phones, and the attribution data points to an oversized hero image loaded through a slow third-party carousel script.

The developers preload a correctly sized image and defer the carousel. Within a release cycle, mobile p75 LCP drops to 2.3 seconds, and the product pages pass the Core Web Vitals assessment for most visitors.