VitalRix
See your website through your visitors’ eyes
Measure how fast your pages really are for real people, catch the JavaScript errors they hit, and replay sessions to see exactly what happened.
11 min read15 sectionsUpdated
On this page
Your laptop is not your visitors
A page that loads in 1.2 seconds on your office connection can take 6 seconds on a mid-range phone on a train. A lab test tells you what is possible. Real user monitoring (RUM) tells you what actually happened to the people who visited.
It matters for three reasons.
- Search and conversion. Core Web Vitals are a ranking signal, and slow pages lose visitors before they ever see your product.
- Blind spots. Uptime checks say the server answered. They cannot say the page jumped around while loading, or that a button took half a second to react, or that a script error broke checkout on one browser only.
- Context for support and engineering. "It didn't work for me" becomes a recording you can watch.
VitalRix adds one script tag to your pages and measures every page view, with no cookies and no IP addresses stored.
What real user monitoring shows
The Real users page opens on your Core Web Vitals, each rated good, needs improvement or poor, next to page views, who is on the site right now and how mobile compares with desktop. Break everything down by page, device, browser, operating system, country, connection type, referrer or host, over any range from 5 minutes to 30 days.
Page paths are grouped, so /orders/123 and /orders/456 appear as /orders/:id and one slow template is not hidden among thousands of URLs.
| Measure | Tells you | Good |
|---|---|---|
| LCP, Largest Contentful Paint | How fast the main content appears. | Under 2.5 s |
| INP, Interaction to Next Paint | How quickly the page reacts to clicks and taps. | Under 200 ms |
| CLS, Cumulative Layout Shift | How much the page jumps while loading. | Under 0.1 |
| FCP, TTFB, total blocking time | First paint, server response time and main-thread blocking. | Track the trend |
| Load timing | DNS, connection, server wait, download and full load. | Track the trend |
| JavaScript errors | Errors visitors hit, grouped, with the page and browser. | Zero new ones per release |
| Live visitors | Who is on the site now and which pages they view. | Not applicable |
Web Vitals follow Google's definitions but are measured by the VitalRix script, so they can differ slightly from Chrome UX Report figures. Safari and older Firefox versions report fewer measures, for example no LCP in Safari, so those segments have fewer samples.
Set it up in five minutes
- Create a site. Go to Real users and set up a site. You get a site key starting with rum_. It is safe to put in your pages, because it can only send data and never read it.
- Restrict it to your hostnames. In the site settings, list the hostnames the script may report from, for example example.com and www.example.com. Data from other hosts is refused.
- Add the script to every page, just before the closing head tag. In Next.js use a Script component with the afterInteractive strategy. With Google Tag Manager use a Custom HTML tag on All Pages.
- Open your site in a browser. The visit appears under Real users within seconds.
- Optional: sample. On very busy sites, set a sampling rate in the site settings. A session is measured entirely or not at all.
If your site sends a Content Security Policy, allow the VitalRix API address in both script-src and connect-src.
<script defer src="https://api.vitalrix.com/api/v1/public/rum/script.js" data-key="rum_your_site_key"></script>Privacy by default
- No cookies are set and no IP address is stored.
- Form values are never collected.
- Page paths are grouped, so identifiers do not end up as separate pages.
- Country is known only when your CDN adds a country header, such as Cloudflare or Vercel.
- Crawlers and bots are ignored.
- Add data-respect-dnt equal to true to the script tag to skip visitors whose browser sends Do Not Track.
No cookies
The script sets none and stores no IP address, so it does not by itself need a cookie banner.
Allowed hostnames
Only the hostnames you list can report. Data from other sites is refused.
Sampling you control
Measure every session while testing and a share of sessions in production.
Session replay
Replay records what a visitor saw and did: page changes, clicks, scrolling and typing, with values masked. You play it back like a video, next to that visit's page views and JavaScript errors, to see how a problem happened.
Replay is off by default and records a share of sessions, 10 percent by default, up to 5 minutes each. A recording continues across page loads in the same tab until it reaches the maximum length.
Turn it on
- Set up real user monitoring first. Replay uses the same site and site key.
- Go to Real users, then Session replays, then Session replay settings. Switch it on, choose the share of sessions and the maximum length, and optionally mask all text.
- Add the recorder script tag shown there, next to the RUM script.
- Browse your site for half a minute. The recording appears under Session replays. Filter by minimum length or by recordings that include JavaScript errors.
While testing, set the share to 100 percent. At 10 percent most of your own visits will not be recorded.
<script async src="https://api.vitalrix.com/api/v1/public/rum/replay.js?k=rum_your_site_key" data-respect-dnt="true"></script>| Protection | What happens |
|---|---|
| Form values | Every input, text area and select is masked in the browser, then masked again on the server. Typed values never reach storage. |
| Sensitive text | Add data-rum-mask to hide an element’s text, or switch on mask all text for the site. |
| Blocked elements | Elements with data-rum-block, iframes, video, audio and canvas are not recorded. |
| Do Not Track | With data-respect-dnt equal to true, visitors with Do Not Track are never recorded. |
| Access | Only members of your organization can list or play recordings. Deleting needs write access. |
| Lifetime | Recordings are deleted automatically after 3 days. |
You can delete one recording, select several and choose Delete N selected, or remove everything for a site with Delete all recordings. Deletion is permanent and recorded in the audit log. Tell visitors about session recording in your privacy notice, as your local law requires.
Know what an outage costs
Incidents are where real user monitoring and uptime meet. When an incident's monitor checks a site you also watch with RUM, the incident shows its customer impact, updated every minute while it is open.
| You see | What it means |
|---|---|
| Revenue at risk | The visits you normally get in the incident window, measured at the same time last week, multiplied by what one visit is worth. |
| Visits | Visits during the incident compared with the same time last week, and how many are missing. |
| Browser errors | The JavaScript errors visitors hit during the incident, and how many visitors saw them. |
| What visitors saw | Session replays recorded during the incident, with errors first. One click opens the player. |
Last week's traffic is used because a site that is down records few or no visits itself. To set it up, open the application, then Settings, then Revenue at risk, and enter what a visit is worth. For a shop, divide monthly revenue by monthly visits.
Mobile LCP is poor, desktop is fine
The mobile and desktop split shows LCP at 4.1 s on mobile and 1.8 s on desktop. Filter by page: the home page hero image is 1.6 MB. Serving a smaller image to small screens brings mobile LCP under 2.5 s, and you watch the rating move from poor to good over the next week.
A JavaScript error on one browser
The errors list shows a new error that only appears on one browser version, on the checkout page. A linked replay shows the visitor clicking Pay three times with no response. A one-line polyfill fixes it.
What did customers see during the outage?
During a 12-minute incident, visits drop to 40 percent of the same time last week. The incident lists revenue at risk and three recordings of visitors staring at an error page, so the postmortem starts from what customers experienced.
Did the redesign help?
Compare INP and CLS for the same pages before and after release. Layout shift fell from 0.21 to 0.04 after reserving space for images, shown as a trend over 30 days.
Judge by the rating, not one number
Use the good, needs improvement and poor ratings per page and per device, so the slow tail is not hidden by an average.
Fix the worst template first
Grouped paths show which page type is slow, so one fix helps thousands of URLs.
Mask more than you think you need
Turn on mask all text if pages show personal data, and tag specific elements with data-rum-mask.
Record a share, not everything
Ten percent is plenty for patterns. Use 100 percent only while testing.
Start from errors
Jump from a JavaScript error to the replay of that session rather than browsing recordings at random.
Compare before and after releases
Check vitals one week before and after a change to see the real effect.
Limits and what to know
- Plan. Billing counts sessions, with a free allowance of 1,000 sessions a month at the time of writing. Extra sessions on the free tier are not recorded. See pricing.
- Replay storage. Recordings are stored compressed. When the storage limit is reached, new recordings pause and resume automatically as old ones expire. You are never charged extra for replay storage.
- Page weight. Very heavy pages whose snapshot is larger than 1 MB compressed cannot be recorded.
- Playback fidelity. Fonts and images load from your live site during playback, so if they changed since the visit it can look slightly different.
- When replay does nothing. If replay is off, the session is not in the sample or storage is full, the script does nothing at all, so it never slows your pages.
- Browsers. Some measures are missing in some browsers, which means fewer samples for those segments.
- Permissions. Only organization members can view recordings. Deleting needs write access.
| Problem | Fix |
|---|---|
| No page views arrive | Check that the hostname is in the site’s allowed hostnames, that an ad blocker is not blocking the script, and that your Content Security Policy allows the VitalRix API. |
| No recordings | Check that replay is switched on, the share of sessions is above 0 percent, and the replay script is on the page. Set 100 percent while testing. |
| Form values appear in a replay | They are always masked. Mask other text with data-rum-mask or turn on mask all text. |
| "New recordings are paused" | Replay storage is full. Recording resumes as old recordings expire, or delete ones you no longer need. |
| Fewer LCP samples than expected | Safari does not report LCP and older Firefox reports fewer measures. This is a browser limit. |
| Term | Meaning |
|---|---|
| RUM | Real user monitoring: measuring performance from real visitors’ browsers. |
| Core Web Vitals | Google’s page experience measures: LCP, INP and CLS. |
| LCP | Time until the largest piece of content is visible. |
| INP | Delay between a click or tap and the next paint. |
| CLS | How far visible elements move unexpectedly while loading. |
| Site key | The public rum_ identifier in the script tag. It can send data, not read it. |
| Session replay | A masked recording of a visit that you play back like a video. |
| Revenue at risk | Missing visits during an incident times the value of one visit. |
Does it use cookies?
No. The script sets no cookies and stores no IP addresses. Session replay does record visits, so mention it in your privacy notice.
Will it slow my site down?
The script loads deferred. The replay script does nothing at all when replay is off, the session is not sampled or storage is full.
Is it safe to expose the site key?
Yes. It can only send data, never read it, and you can restrict it to your hostnames.
What do Core Web Vitals numbers mean?
LCP under 2.5 s, INP under 200 ms and CLS under 0.1 are rated good. VitalRix rates each as good, needs improvement or poor.
Why do my numbers differ from Google’s?
They follow the same definitions but are measured by the VitalRix script on your visitors, so they can differ slightly from Chrome UX Report data.
What about form fields and passwords?
Form values are never collected by RUM. In replay every input is masked in the browser and again on the server.
How long are recordings kept?
Recordings are deleted automatically after 3 days. You can delete any recording earlier.
Can I hide parts of the page?
Yes. Add data-rum-mask to hide text and data-rum-block to leave an element out entirely. You can also mask all text for the site.
How many sessions are recorded?
You choose the share, 10 percent by default, and a maximum length of up to 5 minutes by default.
Can I respect Do Not Track?
Yes. Add data-respect-dnt equal to true to the script tags.
Can I see who is on the site right now?
Yes. The Real users page shows current visitors and the pages they are viewing.
Can I try it on any page?
The free lab tests on this site check LCP and INP for any URL. They are separate from real user monitoring.
See what your visitors really experience
Add one script tag, watch real Core Web Vitals arrive in seconds and turn on replay when you need it.