Closed bynifaciy closed 3 years ago
Do you see heartbeat pings in the network tab?
Hi @AmazingDreams, Same issue. I see only one request :
.../piwik.php?ping=1&...
Matomo Version: 4.8.0
Hello @ezawadzki. I have just tried to reproduce this. I got it to work more reliable when using a heartbeat timer interval of at least 5 seconds. According to https://forum.matomo.org/t/0s-pageviews-even-though-heartbeat-time-is-enabled/38161/7 the minimum heartbeat is 5 and any value lower than that resets it to 5. But when i used 1 in debugging, it only sent 1 request, and basically no more after.
Hi @AmazingDreams, thanks for your answer. I setted heartBeatTimerInterval
at 5 as in the example. Tried to 15 sec, not working too. I connected my site to a friend instance of Matomo (4.4.1), same behaviour.
Here some details of the behaviour after multiple test :
The site request matomo with this kind of request .../piwik.php?ping=1&...
after 2-3min being on the same page. Sometimes a second request appear 2min later... Sometimes not. Very random. If I set "heartBeatTimerInterval" at 5, it should ping every 5sec ? Am I right ?
Tested on a fresh install hello world vuejs SPA project : Matomo: 4.4.1 and 4.8.0 vue: "^3.2.31", vue-matomo: "^4.1.0", vue-router: "^4.0.14" node: 12 and 16.10.0 Browser: Chrome / Brave
Even if I get one or two ping request, after being 6min on a page, I got always 0s pageviews. So thank you for the other javascript suggestion, but there might be another issue.
Here is the har file (please delete .txt extension) : example_chrome.har.txt
After set "enableHeartBeatTimer" to true and "heartBeatTimerInterval" to 1 in matomo.ts i still see in matomo visits with 0s duration time
Any ideas?