Hi,
I’m trying to hide my footprint to track visitors to my different sites by hiding the PIWIK server URL as described here: http://piwik.org/faq/how-to/#faq_132.
However it is not working and I have no idea how to fix it. I have looked on the forum but couldn’t figure it out. I’m a newbie with Piwik and I don’t know much about javascripts, etc.
Before we start, here’s what I have done:
I have the latest Piwik server version
My hosting is with Bluehost and I have PHP 5.2.17 on the server.
I have downloaded the Bluehost php.ini file from here: http://www.bluehostforum.com/archive/index.php/t-1967.html and I added the “allow_url_fopen = On” line in the file. I then uploaded the php.ini file to all my folders using .php
I then followed all the instructions:
- Added website to Piwik.
- Created a user
- Assigned permissions
- Copy token in the .php file
- Copy server in the .php file
- Upload the file to the root folder of my site
- I then added the following code to my footer before the /body:
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.mysite.net/" : "http://www.mysite.net/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.php' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script>
<!-- End Piwik Tracking Code -->
However I don’t see any tracking of any activity in my dashboard.
Can anybody please tell me if I have done anything wrong and if so, how to fix it or debug it?
Thank you very much!