From f0d3bd828583ae3df9b62766892d2ff79916a9b0 Mon Sep 17 00:00:00 2001 From: mherrman Date: Tue, 28 Oct 2025 16:44:26 -0700 Subject: [PATCH] Add 'Page Leave' tracking to heatmap data options tracking these page leave events is expected as per https://github.com/mixpanel/mixpanel-js/issues/532 --- .../tracking-methods/sdks/javascript/javascript-replay.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/docs/tracking-methods/sdks/javascript/javascript-replay.mdx b/pages/docs/tracking-methods/sdks/javascript/javascript-replay.mdx index 16c4be6a0e..2ab010f5e8 100644 --- a/pages/docs/tracking-methods/sdks/javascript/javascript-replay.mdx +++ b/pages/docs/tracking-methods/sdks/javascript/javascript-replay.mdx @@ -174,11 +174,12 @@ mixpanel.get_session_replay_url(); ## Heatmaps, Rage Clicks, and Dead Clicks (Web Only) -The `record_heatmap_data` option (Web only; not available on mobile) enables three types of interaction tracking during replay sessions: +The `record_heatmap_data` option (Web only; not available on mobile) enables four types of interaction tracking during replay sessions: 1. **Click events** - Captures user clicks to populate click heatmaps 2. **Rage clicks** - Captures multiple rapid clicks on the same element (`$mp_rage_click`) 3. **Dead clicks** - Captures clicks on unresponsive elements (`$mp_dead_click`) +4. **Page Leave** - Captures when a page is "left" either by navigation or leaving the tab (`$mp_page_leave`) These events are only captured when a session recording is in progress, and they are exempt from your plan data allowance.