Skip to content

Commit 1924504

Browse files
authored
Add 'Page Leave' tracking to heatmap data options (#2196)
tracking these page leave events is expected as per mixpanel/mixpanel-js#532
1 parent f663ae8 commit 1924504

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/docs/tracking-methods/sdks/javascript/javascript-replay.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,12 @@ mixpanel.get_session_replay_url();
174174

175175
## Heatmaps, Rage Clicks, and Dead Clicks (Web Only)
176176

177-
The `record_heatmap_data` option (Web only; not available on mobile) enables three types of interaction tracking during replay sessions:
177+
The `record_heatmap_data` option (Web only; not available on mobile) enables four types of interaction tracking during replay sessions:
178178

179179
1. **Click events** - Captures user clicks to populate click heatmaps
180180
2. **Rage clicks** - Captures multiple rapid clicks on the same element (`$mp_rage_click`)
181181
3. **Dead clicks** - Captures clicks on unresponsive elements (`$mp_dead_click`)
182+
4. **Page Leave** - Captures when a page is "left" either by navigation or leaving the tab (`$mp_page_leave`)
182183

183184
These events are only captured when a session recording is in progress, and they are exempt from your plan data allowance.
184185

0 commit comments

Comments
 (0)