HowTo Disable Heartbeat on Single Page App with multiple siteIds #10836
Labels
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
I work on a Single Page App / Website, where we track our Data onto one server, but with multiple siteIds and enabled HeartBeat.
We took this approach to be able to track both, the App overall and additional specific routes (with customVariables). Convenient for our analysis of the data in a later step.
We are now facing a Problems with our approach on Page changes. We start more and more Trackers with enabled HeartBeart and cannot stop/remove the ones from previous pages, until we reload the page in the Browser. It can lead to a long list of pings the Client sends each x seconds.
We would like to be able to stop/disable the heartbeat on one or more of the obsolete Trackers by their siteId. I think the method disableHeartBeatTimer could help, but it's Debug only.
Maybe I just missed something and you can point me towards a possibility prevent the above behaviour. I would like to fix the Problem without changing our whole approach.
The text was updated successfully, but these errors were encountered: