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.