Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

0s pageviews, even though heartbeat time is enabled

$
0
0

Hi there,

my heartbeat timer is enabled and set to two seconds, which works for 70% of all users. However, I’m still getting a view 0s pageviews. This is the tracking code in Borlabs:

<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['requireCookieConsent']);
_paq.push(['enableHeartBeatTimer', 2]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);


(function() {
var u="%%matomoUrl%%";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '%%matomoSiteId%%']);
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+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

Example:

Shows 0s on the site.

What could the problem be?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles