New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation how heart beat timer works #15612
Update documentation how heart beat timer works #15612
Comments
* Document changed behaviour of heartbeat timer fix matomo-org/matomo#15612 * Update docs/3.x/tracking-javascript-guide.md Co-Authored-By: Lukas Winkler <git@lw1.at> Co-authored-by: Lukas Winkler <github@lw1.at>
Sorry to bring up this old issue @tsteur, but it is still unclear to me if/how I seem to remember that the old heartbeats would also keep you counted as a live visitor until you left the page/tab, but I am not 100% sure. Am I just imagining things? If this is as intended, I would love it if the docs mentioned how the heartbeat timer relates to the numbers given by |
@sigtm this was changed a few years ago already AFAIK. We're not updating the visit time when a ping request is set as many people ended up having visit lengths of several hours because the visit basically never expired. If you wanted that behaviour you could try this with a custom plugin as suggested in #15179 (comment) |
@tsteur Yeah we have that plugin on our end, but the Live counter still "forgets" about visitors who are on a page but not triggering any requests. Our use case centers around video streaming, so people are often on a page for a long time without triggering anything. So |
@tsteur For what it's worth, sending Our version of that plugin does have a |
BTW if you are having a lot of video then Media Analytics should do the trick for you. If the problem is otherwise that the ping is not triggered, then something like this might help: setInterval(function () {.
window._paq = window._paq || [];
window._paq.push(['ping'])
}, 15000); |
Our use case is extra niche since our technology is usually integrated into a player that we don't control – we are essentially tracking an isolated web view, not the player/media itself. But there are some cases where we do provide the player as well, so thanks for the tip. I will check that plugin out! And yeah that snippet is essentially what I ended up doing 👍 Might be worth updating the part about https://developer.matomo.org/api-reference/tracking-javascript Since it is no longer accurate to say that it "regularly sends requests", which changes the |
Thanks @sigtm removed the "regular" |
#15058 made it work more efficiently, but now it isn't intuitive anymore as one can't see it do its thing when just quickly testing the website.
Therefore at least https://developer.matomo.org/guides/tracking-javascript-guide#accurately-measure-the-time-spent-on-each-page and maybe also related FAQs need to be updated to properly describe how it works and how to test if it is set up correctly.
The text was updated successfully, but these errors were encountered: