Time on page not stored properly when going to next page - using enableHeartBeatTimer

Hello,
we test the latest (2.14.1) version of PiWik.
There are two pages where we want to track user activity - index.html, and from it the gallery.html is linked.

Here’s the problem scenario:

  1. Visitor comes to index.html
  2. As long as he’s on that page, I see in PiWik that the “time on page” increases every 5 seconds
  3. Let’s say he stayed there for e.g. 4 minutes
  4. Then he clicks on the link leading to gallery.html
  5. In that moment, the time on page for index.html is reset to 5 seconds (from the four that I saw before in step 3.)

Here’s the screenshot. The issue is marked with the red circle
There is 5 seconds, but before the user went to the “green” page there was 4 minutes.

In both pages, the code below is used for tracking:


<!-- Piwik -->
<script type="text/javascript">
    var _paq = _paq || [];
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    _paq.push(['enableHeartBeatTimer', 5]);
    (function() {
        var u="<URL_HERE>";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', 3]);
        _paq.push(['setUserId','<USER_ID_HERE>']);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
    })();
</script>
<!-- End Piwik Code -->

[size=large]Any ideas why the time on page value is being reset when going to the other page?[/size]

bump