Piwik does not track anything (frameset)


#1

What is the problem?

Piwik in the latest version does not count at least one visitor or page view. Dashboard shows only zeros.

What does my environment look like?

mydomain.de refers to mydomain.bplaced.net.
My Piwik installation is at mydomain.bplaced.net/analytics/ located.
The tracking code is not in the frameset but in each page where the links are located (before the body end tag).

What I did so far?

I read, understood and checked the points mentioned here:
http://piwik.org/faq/troubleshooting/#faq_58

What am I expecting?

Piwik should show at least the number of page views.

Any ideas?

My tracking code:


<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://mydomain.bplaced.net/analytics/";
    _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);
  })();
</script>
<noscript><p><img src="http://mydomain.bplaced.net/analytics/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->

</body>
</html>


#2

I have the same issue with a localhost installation. The javascript calls to the piwik.php are executed perfectly, but nothing happens after that.
It´s also no view error, because there are no entries in the database.
The apache logs are also clear, no php errors detected, just the incomming calls from the javascript.


(Matthieu Aubry) #3

Maybe try to debug the tracking code as expained in: Tracking HTTP API: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

this should help you find the problem if there is one?