FAQ: How do I add a Javascript heartbeat timer to measure time spent by visitors on my pages, including the last page of their visit?
…duration time, you can achieve this by changing the config flag default_time_one_page_visit. (This will not affect the “Time spent on page”) -> It is possible to configure Matomo to track…