Piwik showing 70% fewer visitors than Google Analyitics / Server Logs

I just started using Piwik last month, and at first things looked okay but now I’m noticing that Piwik is showing 45-70 visitors a day and Google Analytics is showing over 300. This is a ONE PAGE website with page views tracking very closely to visits.

[attachment 1113 index.png]

Google Analytics
[attachment 1112 ScreenShot2013-02-06at2.07.57PM.jpg]



So you didn’t even read my question then? We’re not talking a 5% difference, we’re talking a 70% different and they didn’t disagree to start with, it just dropped off. I have the server logs as well, Google’s number is correct, Piwik’s is not. It’s a one page website, the number of requests to the main page match the number of requests for most of the images on the page very closely and the number of visitors indicated in Google Analyics.

Hi Goclick.

I was wondering if i understand things.

Your site has only one web page.
The page views and visits were ok and then dropped off.

Could you check the following for that time frame what were the unique vistors like?
The day before and after the error could you pull a refferers report?

What cms or web tool is the site built or running with just a static html page?
What server platform?

Static files only, served by nginx.

[attachment 1119 index.png]

[attachment 1120 ScreenShot2013-02-08at1.47.10PM.jpg]

Did you change anything?
Updated Piwik? Enabled some Plugin?Changed the way of integration?

Check your error logs ?

I checked the error logs. It’s all just typical “closed keepalive connection” both for piwik and for the site itself.

Here’s my tracker code

	<script type="text/javascript">
	var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.itgoesclick.com/" : "http://piwik.itgoesclick.com/");
	document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
	</script><script type="text/javascript">
	try {
		var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
		piwikTracker.setDocumentTitle(document.domain + "/" + document.title);
	} catch( err ) {}
	</script><noscript><p><img src="http://piwik.itgoesclick.com/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>

It’s not consistently off either.

I switched to the asynchronous tracking code and now the numbers match close. On the 11th I got 259 in Piwik and 241 in Google Analytics. I can live with a 7% difference.

Thanks for the report. For such big difference not using Async would most likely be explained by another JS on the page that was blocking piwik (ie. some slow ad network). Async is best and we’re changing UI to show async very soon

Okay from the 11th through the 21st I left both packs installed and Piwik is now reporting about 2.6% more page views. However Google is reporting an average time on site of just over 2 minutes (which is logical given the lengthly specilized content) but piwik is reporting just over 1 minute.

See feature requesT: Support Ping requests to report a better 'time on page' · Issue #2041 · matomo-org/matomo · GitHub

please consider sponsoring the fix or donate to help!