Hallo everyone,

I just read about the function setHeartBeatTimer in the docs and tried to change my code. I checked the requests made, but apart from the initial request, none further were made. What am I doing wrong? My Piwik version is 1.12. Below is the code I use.

Thank you,

  var _paq = _paq || [];
  _paq.push(["setCookieDomain", "*"]);
  _paq.push(["setDomains", ["*"]]);
  [u]_paq.push(["setHeartBeatTimer", [15,5]]);[/u]
  _paq.push(["setCustomUrl", 'url']);

  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://";
    _paq.push(["setTrackerUrl", u+"piwik.php"]);
    _paq.push(["setSiteId", "1"]);
    var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
    g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);

it is not yet used at this stage, see: Support Ping requests to report a better 'time on page' · Issue #2041 · matomo-org/matomo · GitHub