Just not getting any data


This is not technically a new topic, for I’ve been reading the posts in the forum relating to not getting any data or reports. I cannot, however, figure this one out, so here goes:
I am experimenting (that in itself should scare some people straight away), with Piwik on a single machine running everything (Apache Web server, PHP, and Piwik). I run a MediaWiki site on localhost that I specified for Piwik to track, inserting the Javascript code into the MediaWiki:Common.js page.
There are no records in piwik_log_visit.
I’m visiting my wiki site using both IE8 and Google Chrome 13.0.782.112 m.
The wiki site is http://localhost/Documentation
My Piwik site is http://localhost/piwik
Here is the JS:

<!-- Piwik --> 
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://localhost/piwik/" : "http://localhost/piwik/");
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);
} catch( err ) {}
</script><noscript><p><img src="http://localhost/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->

What other information do I need to provide in order for someone to start pointing me in the right direction? And why does the “Formatted Code” in this forum thread render wink-smileys in my Javascript?


Check out your config.ini.php file ensure it is point to the DB. Also if you want to make your testing life easier. Download Jmeter.


My config.ini.php file points to the MySQL database as in the following:

host = "localhost"
username = "root"
password = ""
dbname = "piwik"
tables_prefix = "piwik_"
adapter = "PDO_MYSQL"
port = 3306
charset = “utf8”

All components are on my personal laptop, so username and password security is not an issue right now. I’m just not getting anything in piwik_log_visit.
I’m looking into Jmeter since you suggested it.


Are you auto archiving or are you using a crontab job ? If you are using a crontab job run it manually and set it so it points to a log file. Then check out the log file


Since I’m on a Windows XP box, I don’t know of an analogous method of running a crontab job (unless I could run something under a sceduled task). How do I verify whether I am auto archiving (which I believe I am)?


I am sure you are then, but if you go into “settings” then “general settings” in your piwik site it is the first setting listed “Yes” is the default option. Otherwise you may find this helpful for windows:


I messed around with using windows before but we ultimately went with Linux


Oh yeah, Now I remember that I checked earlier, according to the FAQs, that I am indeed auto archiving. Trust me; if I had it my way, I’d be running all this stuff on a Linux box. This machine is the property of my employer. I am researching the use of Web analytics on an internal wiki by running everything on my machine for initial experimentation.

Anyway, I do have Powershell installed and this is what I have:

$PHP_INI = “C:\Program Files\EasyPHP-5.3.2i\apache\php.ini”

However, I have an XAMPP installation in which my php.ini file is in C:\xampp\php. Should I point $PHP_INI to C:\xampp\php\php.ini and then schedule Windows task scheduler, …and change Piwik’s default “Allow Piwik archiving” to “No?”


Not real familiar with the setup of windows but that would seem to be right, yes.