Matomo Heartbeat ((exclusive))
If you have millions of visitors, a 15-second heartbeat can significantly increase your database size and CPU usage. Consider increasing the interval to 30 or 60 seconds.
// Standard tracking code follows...
if ($session) // Update existing session $lastHeartbeat = new DateTime($session['last_heartbeat']); $interval = $now->getTimestamp() - $lastHeartbeat->getTimestamp(); matomo heartbeat
The Heartbeat mechanism operates within the existing Matomo privacy framework. If you have millions of visitors, a 15-second