feat(analytics): Matomo heartbeat timer for accurate read time #19

Merged
Phil merged 1 commit from feat/matomo-heartbeat into main 2026-07-09 18:39:38 +00:00
Owner

Follow-up to #18. Adds enableHeartBeatTimer to the cookieless Matomo snippet.

Without it, Matomo can't measure time on the last page of a visit — and for a blog the typical visit is a single article, so reading time showed as 0s. The heartbeat pings while the tab is active, capturing real dwell time even for single-page visits.

Refs #17

🤖 Generated with Claude Code

Follow-up to #18. Adds `enableHeartBeatTimer` to the cookieless Matomo snippet. Without it, Matomo can't measure time on the **last** page of a visit — and for a blog the typical visit is a single article, so reading time showed as 0s. The heartbeat pings while the tab is active, capturing real dwell time even for single-page visits. Refs #17 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Without the heartbeat timer Matomo cannot measure time on the last page
of a visit — and for a blog the typical visit is a single article, so
reading time showed as 0s. enableHeartBeatTimer pings while the tab is
active so dwell time is captured even for single-page visits.

Refs #17

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Phil merged commit 2e51831b66 into main 2026-07-09 18:39:38 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Phil/philflow.io!19
No description provided.