top of page
bottom of page
// Every 30 seconds, send a heartbeat with elapsed engagement time function pushHeartbeat(engagedTime) { if (engagedTime > 0) { window.dataLayer.push({ event: 'heartbeat', engagement_time_msec: engagedTime }); } }