Real User Monitoring (RUM)

Install the SDK; capture Web Vitals, sessions, errors and funnels.

rumweb-vitalssdksessionsconfig

Real User Monitoring (RUM)

RUM measures the experience of your actual visitors. A small JavaScript SDK reports page loads, Core Web Vitals, errors, route changes and session activity from real browsers.

Install the SDK

  1. Get your RUM ingest key from Settings → RUM.
  2. Add the snippet to your site (before </head>):
<script src="https://cdn.verops.io/rum-sdk.js"></script>
<script>
  VerOpsRUM.init({
    apiKey: "YOUR_RUM_INGEST_KEY",
    service: "storefront",
    environment: "prod",
    sampleRate: 1.0,          // 1.0 = 100% of sessions
    trackErrors: true,
    trackWebVitals: true
  });
</script>

Single-page apps

The SDK auto-tracks route changes; you can also send custom events to mark business steps:

VerOpsRUM.track("checkout_completed", { value: 79.0, currency: "USD" });

What you get

  • Core Web Vitals — LCP, INP, CLS — sliced by page, device, country, release.
  • Page and session performance — load times, slow resources, route timings.
  • Error tracking — JS errors and failed requests, grouped, with the session.
  • Sessions and replays — reconstruct what the user did before a problem.
  • Funnels — conversion through multi-step flows and where users drop off.

Configuration reference

Option Default Purpose
sampleRate 1.0 Fraction of sessions to record (lower for high traffic).
trackErrors true Capture JS errors and unhandled rejections.
trackWebVitals true Collect LCP/INP/CLS.
environment Separate prod vs staging data.
Synthetic plus RUM: synthetic catches regressions before launch from a controlled probe; RUM measures real impact after. Use both.