disableHeartBeatTimer

The disableHeartBeatTimer() method disables 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

disableHeartBeatTimer()
disableHeartBeatTimer(): void
disableHeartBeatTimer(): void
disableHeartBeatTimer(): void
disableHeartBeatTimer(): void
disableHeartBeatTimer(): void
disableHeartBeatTimer(): void

Examples

To stop sending ping requests (heartbeats):

_paq.push(["disableHeartBeatTimer"]);
Heartbeat.disableHeartBeatTimer();
Heartbeat.disableHeartBeatTimer();
Heartbeat.disableHeartBeatTimer();
Heartbeat.disableHeartBeatTimer();
Heartbeat.disableHeartBeatTimer();
Heartbeat.disableHeartBeatTimer();

Related methods