Real user monitoring (RUM) measures how your website performs for real visitors. Session replay records what happened on the page so you can see what went wrong.
Set up RUM
- Open Real User Monitoring and open its setup steps.
- Generate a token. It's designed to appear in your site's code, and it can only send monitoring data.
- Set a sample rate. 100% records every visit.
- Paste the snippet into your site's
<head>. - Browse your site, or use Test Beacon, and check that data appears.
Add session replay
Turn on session replay in the setup steps, and choose what share of visits to record. Recordings appear on the same page.
Protect visitors' privacy
- Form inputs are masked by default.
- Add the
ks-maskclass to hide an element's text, orks-blockto hide the whole element. - Check recordings before you rely on them, especially on pages that show personal data.
Recording visitors may need their consent, depending on where you and they are. Update your own privacy policy, and get legal advice if you're unsure.
Upgrading from an older snippet
Old snippets that use a full agent token no longer work for public RUM. Generate a new RUM token and replace the snippet.
Troubleshooting
No data appears
- Check that the snippet is inside
<head>and uses your current token. - Look in your browser's developer tools for a failed request to
/api/public/rum/beacon. - If your site has a Content Security Policy, allow
kloudsentinel.cominconnect-src, and inscript-srcfor session replay.
Replays are missing
Sampling means only some visits are recorded. Raise the rate while you test.