Session Replay
UX Analytics
Frustration Signals

Rage Clicks and Dead Clicks: How to Detect Them and What They Mean

Every analytics vendor now flags rage clicks and dead clicks, each with different thresholds. At the same time, a growing share of your "users" are AI agents that click like frustrated humans. Here is how detection works, the code to do it yourself, and how to keep the signal clean.

12 min read
Dmytro Vavreniuk

Dmytro Vavreniuk

Product Engineer

Short version: a rage click is a burst of 3-5 clicks on the same spot within 1-2 seconds. A dead click is a click on something that looks clickable but changes nothing on the page within a short timeout (0.5-7 seconds depending on the tool). Detect them in the browser with a click listener and a MutationObserver, attach the session ID so you can open the replay, measure them as a rate per element rather than a raw count, exclude UI that is meant to be clicked repeatedly, and tag automated sessions first, because AI agents retrying a step produce the same pattern as an angry human.

Rage clicks and dead clicks are the two most useful frustration signals a session replay tool collects. They need no survey, no funnel definition and no tracking plan: users tell you where the interface broke simply by clicking. We already wrote about the process side, how to turn these signals into prioritised work, in rage clicks to roadmap. This guide is the layer underneath: how the signals are detected, why tools disagree on the numbers, and what each pattern usually means.

The timing matters. Frustration signals just moved from web to mobile SDKs, and agent traffic stopped being a rounding error. Both change how you should read the numbers.

What changed this autumn

DateWhat happened
Sep 10, 2026Mixpanel ships automatic rage tap and dead tap capture in its Android (v8.10.0), iOS (v6.6.0) and React Native (v3.7.0) SDKs. Frustration signals are no longer a web-only metric.
Oct 14, 2026Mixpanel adds the same rage and dead taps to its Flutter SDK (v2.15.0).
Mid-Oct 2026Cequence Security samples 281,627 AI agent visits across five industries: 85% read pages or compare products, about one in seven signs in, books, buys or manages an account.
Nov 12, 2026Help Net Security reports the Cequence findings: a consumer AI agent that presents itself as a normal desktop browser grew from about 100 to 19,000-32,000 requests a day at one telecom, and briefly reached about 98% of its traffic after a browser update.
Nov 2026Amplitude documents Frustration Analytics for rage and dead clicks in Session Replay (Browser SDK 2.24.0 or later).

Sources: Mixpanel changelog, Help Net Security on the Cequence agent traffic data and Amplitude Frustration Analytics. The first trend means rage taps are now a default metric for mobile teams too. The second means a click stream that once was almost entirely human now contains agents that sign in, fill forms and retry buttons, often while presenting as an ordinary Chrome.

The signals, defined

  • Rage click. Several clicks in quick succession, close together. Three parameters define it: minimum number of clicks, time window and pixel radius.
  • Dead click. One click on an element that looks interactive, followed by nothing: no DOM mutation, no navigation, no scroll, no text selection change before a timeout.
  • Error click. A click followed within about a second by an uncaught JavaScript error. Often the cause of the two signals above.
  • Rage tap and dead tap. The same ideas on touch screens, now captured by mobile SDKs.
  • Related signals. Quick backs (leave a page and return almost at once), rage scrolls and form abandons. Useful context, but noisier.

Why every tool reports different numbers

The definitions sound the same everywhere, but the thresholds are not. Here is what the main tools publish as of November 2026:

ToolRage clickDead clickNotes
PostHog3 clicks, each within 30 px and 1 s of the previous one ($rageclick)Click not followed by a page change: DOM mutation, scroll or selection change (capture_dead_clicks)Thresholds configurable; opt out with .ph-no-rageclick / .ph-no-deadclick
Mixpanel4 clicks within 1 s and 30 pxNo response from an interactive element within 0.5 sAutocapture events [Auto] Rage Click / [Auto] Dead Click; rage and dead taps on mobile
Sentry3+ clicks on a button, input or link that stays dead for 7 sNo DOM update or scroll within 7 s ("slow click"), only on button, input and aslowClickIgnoreSelectors to exclude elements
LaunchDarkly5 clicks within 8 px in 2 s (default, editable in session settings)Not publishedAlso flags rage scrolls and form abandons
Microsoft ClarityMultiple rapid clicks in a small area (no numbers published)Click with no visual change or navigation in a reasonable timeAlso quick backs and excessive scrolling

The spread is wide. A dead-click timeout of 0.5 seconds and one of 7 seconds measure different things: the first catches anything that feels unresponsive, including slow-but-working buttons, the second only catches clicks that truly did nothing. Sentry also limits detection to buttons, inputs and links, while Mixpanel and PostHog look at any element. So never compare rates across tools, and when you switch tools, expect your numbers to jump without anything changing in the product. Sources: PostHog, Mixpanel, Sentry, LaunchDarkly, Microsoft Clarity.

Detect them yourself in about 60 lines

You do not need a vendor to start. The detector below follows the PostHog-style rage rule (3 clicks, 30 px, 1 s) and uses a 1-second dead-click timeout. It only treats elements as dead-click candidates when they look clickable: links, buttons, ARIA roles or anything with a pointer cursor. That last check is what finds the most common bug of all, a card or icon styled like a link with no handler behind it.

// frustration.ts - rage click + dead click detection in ~60 lines, no dependencies
type Signal = { type: 'rage_click' | 'dead_click'; selector: string; count?: number; x: number; y: number; t: number };

const RAGE = { clicks: 3, windowMs: 1000, radiusPx: 30 };   // PostHog-style defaults
const DEAD = { timeoutMs: 1000 };                           // between Mixpanel (0.5 s) and Sentry (7 s)
const IGNORE = '[data-no-frustration], input[type="number"], .carousel *, .stepper *';

let burst: { el: Element; x: number; y: number; times: number[] } | null = null;

export function trackFrustration(emit: (s: Signal) => void) {
  document.addEventListener('click', (e) => {
    const el = e.target instanceof Element ? e.target : null;
    if (!el || el.closest(IGNORE) || !e.isTrusted) return;
    const now = performance.now();

    // --- Rage click: N clicks close in space and time
    const near = burst && Math.hypot(e.clientX - burst.x, e.clientY - burst.y) <= RAGE.radiusPx;
    if (near && now - burst!.times[burst!.times.length - 1] <= RAGE.windowMs) {
      burst!.times.push(now);
      if (burst!.times.length === RAGE.clicks) {
        emit({ type: 'rage_click', selector: describe(el), count: RAGE.clicks, x: e.clientX, y: e.clientY, t: Date.now() });
      }
    } else {
      burst = { el, x: e.clientX, y: e.clientY, times: [now] };
    }

    // --- Dead click: only for things that LOOK clickable
    if (!looksClickable(el)) return;
    let responded = false;
    const done = () => { responded = true; };
    const mo = new MutationObserver(done);
    mo.observe(document.body, { subtree: true, childList: true, attributes: true, characterData: true });
    const startUrl = location.href;
    window.addEventListener('scroll', done, { once: true, capture: true });
    document.addEventListener('selectionchange', done, { once: true });

    setTimeout(() => {
      mo.disconnect();
      if (!responded && location.href === startUrl && document.visibilityState === 'visible') {
        emit({ type: 'dead_click', selector: describe(el), x: e.clientX, y: e.clientY, t: Date.now() });
      }
    }, DEAD.timeoutMs);
  }, { capture: true });
}

function looksClickable(el: Element): boolean {
  const target = el.closest('a, button, [role="button"], [role="link"], input, select, label, summary, [onclick]');
  if (target) return !(target as HTMLButtonElement).disabled;
  return getComputedStyle(el).cursor === 'pointer'; // styled like a link but no handler
}

function describe(el: Element): string {
  const t = el.closest('[data-testid], [id], a, button') ?? el;
  if (t.getAttribute('data-testid')) return `[data-testid="${t.getAttribute('data-testid')}"]`;
  if (t.id) return '#' + t.id;
  return t.tagName.toLowerCase() + (t.className && typeof t.className === 'string' ? '.' + t.className.trim().split(/\s+/).slice(0, 2).join('.') : '');
}

Send each signal with the same session ID your replay recorder uses, so a rage click event links straight to the second in the replay where it happened. If you also propagate that ID to your backend, as described in frontend to backend tracing with the OpenTelemetry session.id, the same click leads you to the slow trace or the failing log line.

// Wire it to whatever you already send events to
import { trackFrustration } from './frustration';

trackFrustration((signal) => {
  navigator.sendBeacon('/events', JSON.stringify({
    ...signal,
    'session.id': window.__replaySessionId,   // same ID as the replay
    path: location.pathname,
    client_kind: window.__clientKind ?? 'human', // see the AI agent section below
  }));
});

Add error clicks

Error clicks are the cheapest signal to add and the most actionable, because they point to a real bug. A few lines on top of the detector:

// Error click: a click followed by an uncaught error within 1 s
let lastClick: { selector: string; t: number } | null = null;
document.addEventListener('click', (e) => {
  if (e.target instanceof Element) lastClick = { selector: describe(e.target), t: performance.now() };
}, { capture: true });

window.addEventListener('error', (ev) => {
  if (lastClick && performance.now() - lastClick.t < 1000) {
    emit({ type: 'error_click', selector: lastClick.selector, message: ev.message });
  }
});

Two implementation notes. Use the capture phase so a handler that calls stopPropagation() does not hide clicks from you. And watch shadow roots and iframes separately: a MutationObserver on document.body does not see changes inside them, so a working web component would look dead.

Keep AI agents out of your frustration data

This is the new part. AI agents and browser automation work by acting, then checking whether the page changed. When the check fails, because the UI updates slowly, the change is subtle or the agent clicked the wrong layer, the usual strategy is to try again. Three identical clicks on a button in two seconds is exactly what a rage click detector looks for. In the Cequence data, one consumer agent presented itself as a normal desktop browser and grew to tens of thousands of requests a day at a single company; its sessions signed in, passed MFA and added items to carts. Traffic like that, counted as human, quietly inflates your rage-click rate on exactly the flows you care about most.

The fix is to classify before you count. Tag every session with a client kind, start with the cheap checks in the browser, and refine on the server with behavioural signals across the whole session:

// Mark sessions that are probably automated BEFORE you count frustration
function classifyClient(): 'human' | 'automation' | 'unknown' {
  if (navigator.webdriver) return 'automation';                 // Playwright, Puppeteer, Selenium, many agent browsers
  if (/HeadlessChrome|bot|crawler|agent/i.test(navigator.userAgent)) return 'automation';
  return 'unknown';                                             // decide later from behaviour
}
window.__clientKind = classifyClient();

// Behavioural hints, checked server-side over the whole session:
//  - clicks with no pointermove before them (programmatic clicks or CDP Input events)
//  - click coordinates exactly at element centres, again and again
//  - perfectly regular intervals between actions (e.g. 1000 ms +/- 5 ms)
//  - no scroll, no hover, no focus changes, yet many form submits

Do not throw automated sessions away. Analyse them separately: if agents rage-click the same button that humans dead-click, you have found a control without clear feedback, which is bad for both. As more shopping and account tasks are delegated to agents, "agent UX" becomes a real conversion factor. Also note the reverse problem from the same report: scrapers and credential-stuffing bots now claim to be well-known AI agents, so a user agent string alone proves nothing. Behaviour and, where available, signed agent requests are the reliable signals.

What each pattern usually means

A signal tells you where to look; the replay tells you why. These are the patterns we see most often and their usual fixes:

PatternLikely causeFix
Rage clicks on a submit or pay button, with a network call in flightSlow backend or no loading state; the user thinks the first click did nothingDisable the button and show progress at once; make the endpoint idempotent so repeat clicks do not double-charge
Dead clicks on text, images, icons or cardsElement looks interactive (underline, pointer cursor, card shadow) but has no handlerMake it a real link, or remove the affordance
Dead clicks on a real button right after page loadHydration not finished, a long task blocks the main thread (poor INP)Ship less JavaScript before interaction, split long tasks, render the button disabled until ready
Rage clicks followed by a JavaScript errorA handler throws; the click genuinely does nothingTreat as a bug: open the error, check the replay, add a test
Dead clicks on a disabled buttonUser does not know why it is disabled (validation hidden, terms checkbox below the fold)Show the reason next to the button, or validate on click instead of disabling
Rage clicks on carousel arrows, steppers, +/- buttonsUsually intentional repeated clicking, not frustrationExclude these selectors from the detector
Bursts of identical clicks, no mouse movement, regular timingAutomation: test scripts, scrapers or an AI agent retrying a step it could not verifyTag as automation and analyse separately; it may still reveal an agent-hostile UI

The "dead right after load" row deserves a special mention, because it hides behind good lab scores. A page can pass every Core Web Vitals check in Lighthouse while real users click a button that is not hydrated yet. Pairing dead clicks with INP from real users, as we describe in Core Web Vitals and session replay, usually finds the long task responsible. For errors, jump from the error click to the stack trace as shown in error tracking with session replay.

Measure rates, not counts

The "Add to cart" button will always have more rage clicks than the footer, simply because more people click it. Divide by the number of sessions that clicked the element, require a minimum sample, and filter to human sessions:

-- Rage-click rate per element (ClickHouse / any SQL warehouse)
-- Denominator: sessions that clicked the element at all, so busy buttons are not punished
SELECT
  selector,
  path,
  uniqIf(session_id, type = 'rage_click')                         AS rage_sessions,
  uniqIf(session_id, type = 'click')                              AS click_sessions,
  round(rage_sessions / greatest(click_sessions, 1) * 100, 2)     AS rage_rate_pct,
  uniqIf(session_id, type = 'dead_click')                         AS dead_sessions
FROM ui_events
WHERE ts >= now() - INTERVAL 7 DAY
  AND client_kind = 'human'                    -- keep agents out of the UX metric
GROUP BY selector, path
HAVING click_sessions >= 50                    -- ignore tiny samples
ORDER BY rage_sessions DESC
LIMIT 20;

Watch the trend per element and per release rather than chasing a benchmark. A rage-click rate that doubles the day after a deploy is far more useful than any industry average, especially since, as the threshold table shows, there is no shared definition to benchmark against. For a page-level overview of where clicks cluster, a heatmap is still the fastest view; see heatmaps vs session replay for when to use which.

Pitfalls

ProblemFix
Counting raw rage clicksBusy elements always have more. Use sessions with a rage click divided by sessions that clicked the element, and set a minimum sample.
Dead-click timeout too shortAt 0.5 s, every slow API call looks dead. At 7 s, users have already left. 1-2 s catches real "nothing happened" moments; investigate slow ones with INP and network data.
Ignoring double-click and multi-click UIText selection (double/triple click), steppers, carousels and games create rage clicks by design. Maintain an ignore list in code, not in someone’s head.
Mixing agent and human sessionsAgents retry clicks when they cannot confirm a result, which looks exactly like rage. Tag client kind first, then compute UX metrics on human sessions only.
Shadow DOM and iframesA MutationObserver on document.body does not see changes inside shadow roots or iframes. Observe those roots too, or a working web component looks dead.
Recording text in selectorsButton labels can contain personal data (names, emails). Use data-testid or ids, as in the detector above, not innerText.

On privacy: frustration events are behavioural data linked to a session, so they fall under the same consent and retention rules as the replay itself. Details in session replay and GDPR.

Rollout checklist

ItemQuick test
Thresholds written down in codeRage: clicks, window, radius. Dead: timeout and what counts as a response.
Ignore list for multi-click UISteppers, carousels and editors produce zero rage clicks in a test session.
Signals carry the session.idFrom a rage click event you can open the exact replay at that second.
Client kind taggedA Playwright run against staging shows up as automation, not as frustrated users.
Rates, not countsThe weekly top-20 is sorted by affected sessions with a minimum sample.
Triage ownerSomeone reviews the list weekly and turns clusters into tickets (see our roadmap article).

In LogNroll, rage and dead clicks are marked on the replay timeline, so you can filter sessions by them and jump to the moment they happened. The LogNroll MCP server lets a coding agent pull those sessions and propose a fix, which closes the loop from signal to pull request.

Frequently asked questions

What is a rage click?

A rage click is a burst of rapid clicks on the same spot, usually because the user expects a reaction that does not come. Most tools define it as three to five clicks within one or two seconds and within 8 to 30 pixels of each other. PostHog uses 3 clicks within 30 px and 1 s, Mixpanel 4 clicks within 1 s and 30 px, and LaunchDarkly defaults to 5 clicks within 8 px in 2 s.

What is a dead click?

A dead click is a click on something that looks clickable but produces no visible response: no DOM change, no navigation, no scroll and no selection change within a short timeout. Mixpanel uses 0.5 seconds for interactive elements, Sentry uses 7 seconds for buttons, inputs and links. A one to two second timeout is a practical middle ground for your own detector.

What is the difference between rage clicks and dead clicks?

A dead click is a single click that gets no response. A rage click is a cluster of repeated clicks. They often appear together, a dead click followed by a rage click, but rage clicks also happen on elements that do respond, only too slowly, and dead clicks often happen once and the user simply gives up.

How do I detect rage clicks in JavaScript?

Listen for click events in the capture phase, keep the time and position of recent clicks, and emit a rage click when the number of clicks within the time window and pixel radius reaches your threshold. For dead clicks, start a MutationObserver plus scroll and selectionchange listeners on each click of a clickable-looking element and emit a dead click if none of them fire before the timeout. The full 60-line detector is in this article.

Do AI agents and bots cause fake rage clicks?

They can. Browser automation and AI agents repeat clicks when they cannot confirm that an action worked, which matches the rage click pattern, and some agents present themselves as a normal desktop browser. Tag sessions by client kind using navigator.webdriver, the user agent and behavioural signals such as clicks without prior mouse movement, and compute frustration metrics on human sessions only.

What is a good rage click rate?

There is no universal benchmark, because thresholds differ between tools. Track the rate per element over time instead: sessions with a rage click on an element divided by sessions that clicked it. A sudden rise after a release is the signal worth acting on, and a key flow such as checkout or signup with more than a few percent deserves a replay review.

Further reading

See every rage click and dead click in context. Try LogNroll for free and jump from a frustration signal straight to the replay.