enableHeartBeatTimer
The enableHeartBeatTimer() method enables the more accurate end-of-session counting, which is achieved by sending ping requests (heartbeats) to check if a visitor is still on the last page.
Syntax
enableHeartBeatTimer()
enableHeartBeatTimer(): void
enableHeartBeatTimer(): void
enableHeartBeatTimer(): void
enableHeartBeatTimer(): void
enableHeartBeatTimer(): void
enableHeartBeatTimer(): void
Examples
To enable sending ping requests (heartbeats):
_paq.push(["enableHeartBeatTimer"]);
Heartbeat.enableHeartBeatTimer();
Heartbeat.enableHeartBeatTimer();
Heartbeat.enableHeartBeatTimer();
Heartbeat.enableHeartBeatTimer();
Heartbeat.enableHeartBeatTimer();
Heartbeat.enableHeartBeatTimer();
Notes
- The first ping is sent 15 seconds after the page loads. The wait time between pings then escalates as follows (in seconds): 15, 30, 60, 120, 240, 480, 960, 1800. The last ping is sent 30 minutes after the last visitor interaction with the page.
Related methods
Updated 6 days ago