Basic Set-Up help

(freedomfries13) #1

I am totally new to Piwik, and I am trying to use it on a project I am working on. Anyways, I have it installed and watching the page that I would like to keep track of, but I cannot get any information to show up. I am not sure what is going on, I checked the db to see if anything was getting input into it, and nothing which makes me feel like I screwed something up to make it so it is not tracking the site properly. Here is the piwik tag I put in my webpage

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://URL/~iteam3/piwik/" : "http://URL/~iteam3/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://URL/~iteam3/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tag -->

Before anyone says that the code is wrong because of the “URL” part of the addresses, that part is the address of the site I want it to monitor, and it is coded in properly. I am not running the latest version of Piwik because the admin for my server says it is too unstable for his liking. Could that be why it is not tracking? Sorry if this is an easy solve, but like I said, I am brand new to Piwik. Thanks for the help!

(Takun) #2

What version of Piwik are you running?

(vipsoft) #3

Make sure piwik.js and piwik.php can be accessed from an external machine.

(freedomfries13) #4

Thanks for your help, but turns out after I added the piwik tracking code piece, someone accidentally deleted a line or something like that and I was looking at an older version of the page…anyways, thanks again for the help.