Empty visits content tracking


I implemented content tracking on one of my websites. Now I see a lot of ‘empty’ visits in the visiters log. These occur next to the normal logs. Even since the visitor ID is identical the user gets logged as a new visit so the visitor count increased with 50%.

The unique visits count is still correct.

The extra log occurs on the POST action.

The content tracking is on an internal link


How does your tracking code look like?


  var _paq = _paq || [];
  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://stats.example.com/";
    _paq.push(["setTrackerUrl", u+"piwik.php"]);
    _paq.push(["setSiteId", "58"]);
    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);

<div data-track-content>
<a href="internal"><img src="" data-content-piece/></a>

I excluded my browser by cookie. And I see myself back in the logs. Again without actions but with the facke referrer URL I use.


ok I can reproduce. Thx!


FYI: I have created an issue for this: Visitors having empty visits when using content tracking · Issue #6296 · matomo-org/matomo · GitHub


Good luck solving it.

Does the 1-second thing also apply to conversions?


Don’t think so. Should work for them.

I’ve a fix that will fix it for all cases but not sure whether we will use this fix or maybe another one.