# Friction metrics

Four built-in events that show where users get stuck in your product, Rage click, Dead click, Error click and U-turn, and how each one is counted.

**Path:** Analytics → Event Explorer (event picker → **Friction metrics** category)

Friction metrics are four built-in events that show where users get stuck in your product: controls that don't respond, actions that fail, and pages users back out of. Use them to find the elements and pages worth fixing first, and the session recordings worth watching.

{/* TODO(PLG-6610): add screens (Event Explorer category, Friction metrics filter, dashboard widget) once the feature is in Prod. */}

<FrictionMetricCards />

## At a glance

| Metric | Window | One event per | Properties |
| :--- | :--- | :--- | :--- |
| **Rage click** | 3+ clicks, each within 1 s | Burst | page, element, clicks |
| **Dead click** | No response within 1 s | Click | page, element, disabled |
| **Error click** | Error within 2 s of the click | Click | page, element, cause, method, endpoint, status |
| **U-turn** | Back to the previous page within 7 s | Return to the previous page | page, from, seconds |

## How they're recorded

- **Built in.** The SDK sends all four, like Page view. You don't send, rename or delete them.
- **Every session.** They're recorded whether or not the session is recorded for [Session Replay](/user-guides/analytics/session-replay/). When it is, the event carries the recording id, so you can open the recording.
- **Your page only.** Nothing inside the agent's panel counts, and neither do Foldspace's own errors or requests.
- **No sensitive content.** The events never carry typed values, request or response bodies, or error message text. Element labels are cut to 60 characters, with emails and long digit runs masked. Page URLs are cleaned the same way as Page view.

A **click** is a primary-button click or a tap. Clicks with Ctrl, Cmd, Shift or Alt held, and middle-button clicks, don't count, because they open new tabs.

The **element** is the nearest clickable element around what was clicked (a button, a link, an interactive role, or something with a pointer cursor), reported by its type or role and its label (visible text or `aria-label`).

A **page** is the URL path, plus the hash when your app routes by hash (`#/…`). The query string is ignored. Ids in paths (all digits, UUIDs, or long mixed letters and digits) are shown as `:id`.

## Rage click

A user clicks the same control again and again because it didn't respond, or didn't respond the way they expected.

| | |
| :--- | :--- |
| **Counts when** | 3 or more clicks land on the same element, each within 1 second of the previous one |
| **Doesn't count** | Two clicks (a double-click) · clicks more than 1 second apart · clicks that select text, such as inside a text field or a triple-click on a paragraph |
| **One event per** | Burst, sent once 1 second passes with no further click on that element |
| **Properties** | `page` · `element` · `clicks` (how many clicks in the burst) |
| **Example** | Clicking Save five times on a slow form; clicking Export when nothing shows that the export started |

:::note
The Session Replay player counts rage clicks with the same rule, so for recorded sessions the counts agree, except for text-selection bursts, which only the event leaves out.
:::

## Dead click

A user clicks something that looks clickable, and nothing happens: a broken handler, or a disabled control with no explanation.

| | |
| :--- | :--- |
| **Counts when** | The click is on an element that looks clickable (a button, a link, a `button`, `link`, `menuitem`, `tab`, `checkbox` or `switch` role, or a pointer cursor) and has a label, and within 1 second nothing happens: no change to the page, no URL change, no focus moving into a field, no value change, no dialog, new tab or download, no scroll, and no request to your app's own site |
| **Disabled controls** | Count, with `disabled: true`. In B2B products a greyed-out control is often a permission or plan limit |
| **Doesn't count** | Elements with no label · text, images or empty space that don't look clickable · links that open a new tab or download a file · clicks on a `<canvas>` (drawing apps change it in ways the SDK can't see) |
| **One event per** | Click. In a rage-click burst only the first click can be a Dead click, and the burst still sends its Rage click |
| **Properties** | `page` · `element` · `disabled` |
| **Example** | A greyed-out Invite user button for someone who isn't an admin; a card that looks like a link but isn't; a button whose handler broke in a release |

:::tip
Copy buttons that copy without showing any feedback show up as Dead clicks. Break down by element to spot them.
:::

## Error click

An action the user took failed.

| | |
| :--- | :--- |
| **Counts when** | Within 2 seconds of a click, one of the causes below happens |
| **Doesn't count** | Errors with no click in the 2 seconds before · requests to third parties (analytics, ads, anything an ad blocker stops) · third-party script errors with no detail (the browser's "Script error.") |
| **One event per** | Click, for the first error that follows it |
| **Properties** | `page` · `element` · `cause` · for `request`: `method`, endpoint path (no query string, ids masked), `status` (0 for no response) |
| **Example** | Save returns a 500; Export returns a 403 because the plan doesn't include it; a "Name is required" message appears |

| Cause | What happened |
| :--- | :--- |
| `exception` | An uncaught JavaScript error or unhandled promise rejection from your app's code |
| `request` | A request to your app's own site (subdomains included) started in those 2 seconds and returned HTTP 4xx or 5xx, or got no response. The event is sent when the request fails, even if that's later |
| `message` | An error message shows on the page: an element with `role="alert"` appears or its text changes |

## U-turn

The user went to the wrong place and backed out straight away.

| | |
| :--- | :--- |
| **Counts when** | The user goes from page A to page B, then back to page A within 7 seconds of landing on B, in the same tab, with no other page in between. Back can be the browser's Back button or a link to A |
| **Doesn't count** | Reloading page B · saving something on page B (a submitted form, or a create, update or delete request to your app that succeeded): the user did what they came for · pages the agent navigated to |
| **One event per** | Return to page A |
| **Properties** | `page` (B, the page backed out of) · `from` (A) · `seconds` (time spent on B) |
| **Example** | Opening Integrations while looking for API keys and going straight back; a report link that opens a page the user didn't expect |

:::note
Triaging records (open one, glance, go back) counts as a U-turn. Break down by page to separate triage pages from real wrong turns.
:::

## Where to find them

- **[Event Explorer](/user-guides/analytics/event-explorer/).** The four events have their own **Friction metrics** category in the event picker. Break down by any of their properties, for example Rage click by element to see which controls draw the most.
- **The Friction metrics filter.** Under **Web & Session** in the filter panel of every report, and in [Session Replay](/user-guides/analytics/session-replay/)'s filter bar. Narrow any report, or the recording list, to sessions with (or without) a friction metric.
- **The Friction metrics widget.** A ready-made widget in **Add Widget** on the [Dashboard](/user-guides/analytics/dashboard/), stacked by metric.

There is no separate friction report; the filter works inside the reports you already use.

:::note
Friction metrics are analytics only for now. The agent doesn't see them in its context or use them to decide when to help.
:::

## Related

- [Events & metrics](/user-guides/analytics/events-metrics/): the other event categories in Event Explorer.
- [Properties & filters](/user-guides/analytics/properties-filters/): filtering and breaking down any metric.
- [Session replay](/user-guides/analytics/session-replay/): watch the sessions behind a friction metric.
