New to Piwik - No Data Reporting


#1

As said in title I’m new to Piwik and I am not able to get any data reporting. I installed it on my web server 2 days ago and nothing is coming through the reports.

Background:
I’m on the newest version of Piwik. I installed it into it’s own folder in my public_html directory and then pointed a subdomain of the domain I’m testing it on to it. I could not find any suggested location to put it when using a subdomain, but did read about how you could do it in a subfolder of a website or using a subdomain. If there is a problem with having it installed outside of a website but still in my host web directory please inform.

Install was a bit tricky as I kept getting the error message that I “skipped a step of the installation process”. I tried several browsers, even vanilla ones without any plugins added and kept getting the same run around. This would occur each time I got to the “create super user” phase. Starting the install over, i.e. dropping the tables from the database, deleting all the piwik files from the directory and re-extracting them, clearing browser cache just repeated the same symptoms.

I was however able to get it installed finally without clearing anything and when I came to the warning screen about tables already existing in the database I simply over-wrote them. It took a couple times before the install took but everything checked fine in the end.

I followed the entire install instructions found in the documentation exactly and have the tracking code properly placed just before the closing tag for the website I’m testing it on.

Here is my code placed at the end of each page:

<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
  _paq.push(["setCookieDomain", "*.mysite.com"]);
  _paq.push(["trackPageView"]);
  _paq.push(["enableLinkTracking"]);

  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://analytics.mysite.com/";
    _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><img src="http://analytics.mysite.com/piwik.php?idsite=1&rec=1" style="border:0" alt="" /></noscript>
</body>

I left the commented Piwik tags off in my code on the site, but other than that I copied directly from the generator. I replaced the original code from the install with this generated code I made through the active Piwik install.

Logging into Piwik everything is showing zeros. 0 data. I left it for a day and came back to check, still nothing. I went through every suggestion from the troubleshooting guide and I’m still not seeing anything coming through. I know there are visitors because I also have Google Analytics still installed.

I am also using Cloudflare but have it currently paused and also looked up on their guides and found a work around to get the proper IPs to report but other than that I see no direct conflict with Cloudflare that would be causing reports to be empty.

Getting Piwik up and running seems pretty straight forward but I’ve exhausted all the info I could find in the guides and on the forums so I am forced to make this newb post. Any help is greatly appreciated.


#2

I forgot to mention the website in question is built on MODX Revolution and I installed the tracking code manually not using the plugin. Far as I’ve read however there’s no special treatment needed for this CMS.


#3

Really? No one can help? Any suggestions what else to check? Still no reports coming through.


#4

Check your piwik web logs for traffic getting the piwik.js file and check any firewall settings blocking access to the tracking files for starters


#5

I checked the db entries for the logs, nothing is in there. I’ve used a few different computers to connect with the site having varying degrees of privacy/protection. As mentioned I still have google analytics installed and it’s seeing traffic.

I’ve successfully worked through every single suggestion here: Piwik Troubleshooting FAQ 58 and still nothing. Did that prior to posting.

Still installed without anything coming through.


(Matthieu Aubry) #6

Try to disable the PROVIDER plugin the settings. this may fix it


#7

No go. Has to be something simple I’m overlooking. Would a fresh install help?


(Matthieu Aubry) #8

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

Maybe it will help you see the error, let me know what you see!


#9

UPDATE:
Thanks for the suggestions Matt! I disabled the Provider feed and didn’t see anything at first. Left it for a day or two, came back and sure enough was getting reports. I made another piwik install on a different host and disabled Provider right off the bat. Instantly started tracking 3 websites.

On the first host I re-enabled the Provider plugin and I’m going to watch to see what happens. That’s a fairly important stat though so I need to find a fix for this.

I’ll have a look through the debugger link you suggested and see what comes of it. What is it about the Provider plugin that causes this problem Matt?


(Matthieu Aubry) #10

It’s fixed in latest beta here: I would like to test early beta and RC releases, how do I enable automatic updates to use these development versions? - Analytics Platform - Matomo

and we will release 2.2.0 next week!