Screen showing a video-style replay of a visitor session with cursor movement

How to Set Up and Watch Session Recordings in statpx

Numbers tell you a form has a 60% abandonment rate. They don't tell you that visitors are getting stuck on a validation error that never explains itself, or repeatedly clicking a button that silently fails. Session Recordings in statpx close that gap by replaying real visitor sessions — cursor movement, clicks, scrolling, and rage clicks — so you can watch exactly what a real person experienced. This guide covers turning recordings on, protecting sensitive input, filtering the ones worth watching, and using the player itself.

Turning On Session Recording

Recording is off by default and has to be enabled in two places. First, go to Site Settings for the site you want to record and turn on the recording toggle. From there you control two important settings:

Second, add this line before your statpx tracking snippet on the pages you actually want recorded:

// Add this BEFORE the statpx track.js snippet window._stRecord = true; // Then your normal tracking snippet follows, e.g.: // <script async src="https://statpx.com/track.js" data-site="YOUR_TRACKING_ID"></script>

Both switches have to be on: the Site Settings toggle governs whether the site records at all (and at what sample rate), while window._stRecord opts a specific page into being eligible for capture. This lets you record just your signup flow or checkout pages instead of every page on the site.

Masking Sensitive Fields

Typed input values are never captured by design — statpx does not record what visitors type into any field, so passwords, card numbers, and personal details never reach a recording. But some pages display sensitive text that isn't typed input, like an account balance, an email address rendered on the page, or a customer's name in a dashboard header. To blur those out of the replay, add class="st-mask" or a data-st-mask attribute to the element:

<span class="st-mask">[email protected]</span> <div data-st-mask>Account balance: $4,210.00</div>

Any element carrying either marker is redacted in the recorded replay, while the rest of the page records normally. Audit any page with account data, order details, or user-generated content before turning recording on for it.

Filtering by Rage Clicks, Long Sessions, and Errors

Once recordings start coming in, the list on the recordings page can be filtered so you don't have to watch everything to find what matters:

Start with the rage-click filter after any redesign — it surfaces the exact spots where your new layout confused people, faster than reading through a random sample would.

Using the Replay Player

Click Replay on any session in the list to open the player. From there you get standard playback controls: play/pause, a speed selector (1×, 2×, 4×, 8×) so you can skip through the quiet parts of a long session, and a scrubber to jump directly to a specific moment. Rage clicks are marked visibly on the timeline so you can jump straight to the moment of friction instead of watching the whole session from the start.

Watch your first session replay today

statpx records real visitor sessions with automatic input masking and rage-click detection built in. Privacy-friendly, free to start.

Start for free →

The Bottom Line

Session recordings turn an abstract drop-off rate into a video you can actually watch. Instead of guessing why visitors abandon a form or bounce off a page, you can replay the exact session and see the moment things went wrong. Enable recording with a conservative sampling rate, mask anything sensitive with st-mask, and use the rage/error filters to jump straight to the sessions worth your time. Pair replays with the click heatmap for the full picture — the heatmap shows you where the friction is happening across many sessions, and the recording shows you exactly what it looked like for one real visitor. If your site throws client-side errors during a recorded session, cross-reference them with JavaScript error tracking to fix the root cause.

Continue reading

Technical
How to Identify and Block Referrer Spam in Website Analytics
Metrics
How to Track and Reduce Shopping Cart Abandonment with Analytics
Privacy
Google Consent Mode v2 Explained: What It Means for Your Analytics
Analytics by statpx