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,
whiz
var _paq = _paq || [];
_paq.push(["setCookieDomain", "*.domain.com"]);
_paq.push(["setDomains", ["*.domain.com"]]);
[u]_paq.push(["setHeartBeatTimer", [15,5]]);[/u]
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
_paq.push(["setCustomUrl", 'url']);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://domain.net/piwik/";
_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);
})();