What is real user monitoring (RUM)?

Real user monitoring (RUM) measures how your site performs for actual visitors by running a small script in their browsers. It collects page loads, Core Web Vitals (LCP, INP, CLS), timings such as TTFB, JavaScript errors and the browser, device and region, so you see the experience of real users rather than that of a test machine.

· Updated · also called RUM, end-user monitoring

Why real user monitoring (RUM) matters

Synthetic checks run from data centres on fast connections; your users run older phones on mobile networks. RUM shows the real distribution, including the slow quarter of page loads that lab tests never see.

Google assesses Core Web Vitals at the 75th percentile of page loads, with good thresholds of 2.5 s for LCP, 200 ms for INP and 0.1 for CLS, so measuring p75 yourself shows where you stand.

How to measure real user monitoring (RUM)

p75 (nearest rank) = value at rank ⌈0.75 × n⌉ of the sorted samples
good at p75: LCP ≤ 2.5 s · INP ≤ 200 ms · CLS ≤ 0.1   (LCP above 4.0 s is poor)

Worked example

Eight page loads of your pricing page had LCP values of 1.2, 1.8, 2.1, 2.4, 2.6, 3.0, 3.9 and 5.2 seconds.

  1. Rank = ⌈0.75 × 8⌉ = 6.
  2. The 6th sorted value is 3.0 s, so p75 LCP = 3.0 s.
  3. 3.0 s is above 2.5 s but not above 4.0 s, so the page needs improvement, even though half the loads took 2.4 s or less.

Result: A real assessment uses far more than eight samples, but the method is the same: look at the slow quarter, not the typical load.

How real user monitoring works (step by step)

  1. A small script loads with the page. It is added once to your site template and loads asynchronously, so it does not block rendering.
  2. The browser measures. The script reads the browser's own performance APIs: Navigation Timing for TTFB and load timings, and PerformanceObserver entries for Largest Contentful Paint, layout shifts (CLS) and event timing for interactions (INP). JavaScript errors are caught too.
  3. A beacon goes out when the visit ends. When the page is hidden or unloaded (visibilitychange / pagehide), the script sends one small JSON payload with navigator.sendBeacon, which the browser delivers even as the tab closes.
  4. The collector checks and stores it. The receiving endpoint verifies the site token and the page's origin, applies sampling and plan limits, and records the page, device type, browser and country with the timings.
  5. Percentiles are computed per segment. Values are aggregated per page and segment over a window, and Core Web Vitals are judged at the 75th percentile, so one slow phone cannot dominate and a slow minority cannot hide.

Vigil's snippet follows exactly these steps: PerformanceObserver for LCP, CLS and INP, a sendBeacon on pagehide/visibilitychange (with a fetch keepalive fallback), and an ingest endpoint that rejects unknown tokens and origins that are not on the site's allow-list.

Core Web Vitals thresholds, assessed at p75

MetricMeasuresGoodNeeds improvementPoor
LCP, Largest Contentful Paintloading: when the main content appears≤ 2.5 s2.5 – 4.0 s> 4.0 s
INP, Interaction to Next Paintresponsiveness to clicks, taps and keys≤ 200 ms200 – 500 ms> 500 ms
CLS, Cumulative Layout Shiftvisual stability≤ 0.10.1 – 0.25> 0.25
FCP, First Contentful Paint (diagnostic)first text or image painted≤ 1.8 s1.8 – 3.0 s> 3.0 s
TTFB (diagnostic)server and network until the first byte≤ 0.8 s0.8 – 1.8 s> 1.8 s

Thresholds as published on web.dev. INP replaced First Input Delay as a Core Web Vital in March 2024. A page passes when the 75th percentile of its loads is in the good band for all three Core Web Vitals.

Worked example: one p75 hides two very different experiences

Six desktop loads of a page have LCP values of 1.1, 1.3, 1.4, 1.6, 1.9 and 2.2 s; six mobile loads have 2.0, 2.6, 2.9, 3.4, 3.8 and 4.6 s. With nearest rank, p75 of six samples is the 5th value: desktop p75 = 1.9 s (good), mobile p75 = 3.8 s (close to poor).

All twelve together give p75 = the 9th value = 2.9 s, "needs improvement". That single number describes neither group. Break RUM data down by device, page and country before deciding what to fix; the percentile maths is the same.

RUM vs synthetic monitoring

Real user monitoringSynthetic monitoring
Trafficyour visitorsa scheduled robot
Detects an outage at 3 a.m.no, if nobody visitsyes, within one check interval
Devices and networksreal phones, real mobile networksa data-centre machine on a fast link
Baselinemoves with your audience mixstable, good for comparing releases
Cost grows withpage viewsnumber of checks
Privacycollects visitor data: needs a policyno visitor data

Use both: synthetic checks to know the site is up and to compare releases, RUM to know how fast it is for the people who use it. A free HTTP check shows the server-side timing of one request.

Sampling: keeping RUM volume inside a plan

RUM cost follows page views. A site with 400,000 page views a month on a plan that includes 100,000 can sample 25% of sessions: the p75 of about 100,000 page loads is still very stable. Sample by session rather than by page view, so each kept visit is complete from landing to exit; in Vigil that is the data-sample="25" attribute on the script tag, and the decision is kept for the whole session.

Field data is also what Google uses: the Chrome UX Report (CrUX) aggregates real Chrome users over a rolling 28 days, and Search Console's Core Web Vitals report is built on it. Your own RUM shows the same metrics per release, without waiting four weeks.

Common mistakes

  • Looking at averages. Web Vitals are judged at p75 for a reason. Use percentiles.
  • Mixing pages. A light landing page and a heavy dashboard in one number tell you little. Break results down by page.
  • Forgetting privacy. RUM collects data from visitors. Avoid personal data and follow your privacy and consent rules.
  • RUM instead of synthetic checks. RUM needs traffic. At night or on a new page there may be none, so keep synthetic checks for detecting outages.
  • Comparing lab scores with field data. A Lighthouse run on a fast laptop is not the p75 of real visits. Use lab tests to debug and field data (RUM, CrUX) to judge.
  • Not segmenting by device. Desktop and mobile loads in one percentile describe neither group. Break p75 down by device, page and country.

How Vigil handles real user monitoring (RUM)

  • Add Vigil's script tag to your site and Real users shows Web Vitals at p75 (LCP, CLS, INP, TTFB and FCP), page views and sessions, JavaScript errors grouped by fingerprint, and browsers, devices and regions.
  • RUM sites and monthly page views are counted per plan; synthetic uptime and browser checks cover the hours without traffic.
  • Vigil's own public pages run the same script.

Real user monitoring (RUM): frequently asked questions

What is the difference between RUM and synthetic monitoring?

RUM measures real visitors as they use the site; synthetic monitoring runs scripted checks from fixed locations on a schedule. RUM shows real experience, synthetic detects outages even with no traffic.

Does RUM slow down my site?

A well-built RUM script is small and loads asynchronously, so its effect is minor but not zero. Load it with async or defer.

Which Web Vitals matter most?

The three Core Web Vitals: Largest Contentful Paint (loading), Interaction to Next Paint (responsiveness) and Cumulative Layout Shift (visual stability). TTFB and FCP help diagnose them.

Vigil by PuzariCloud

Measure it instead of estimating it

Uptime and API checks, heartbeats, status pages, on-call, traces, errors, logs and real user monitoring in one place, with every feature on every plan, including Free.