Is there a way to hide or obfuscate the Piwik server in the javascript and make it appear as piwik is running on the same server as the website being tracked?
I’ve tried some of the free online obfuscate sites but couldn’t get the code to work.
Using the server-side tracker you would lose browser plugin detection, screen resolution, and some fixups (e.g., when a page is loaded via Google Translate or Cached page).
With respect to footprint. piwik.js is about 5K when gzip’d. If your Apache web server isn’t configured to compress static assets (e.g., mod_deflate), you can use Piwik’s proxy in the js/ folder (which will compress and cache the compressed file, and serve out headers for cacheability).
I may have to look into this as it looks like the phptracker class option doesn’t track what I need.
Info from documentation:
Note: the code doesn’t use Javascript so Piwik will not be able to track some user information such as search keywords, referer websites, screen resolutions, plugin support and page titles.
Thank you for the suggestions. I checked my error logs, but there was nothing in them. I contacted my web host and told them I was getting a 403 for the piwik request and they whitelisted some rules that got everything working now.
The tracking is working now, but outlinks/downloads are still not working… I don’t have any other javascript code on the website. I added class=‘piwik_link’ to each link I wanted to track.
piwikTracker.setLinkTrackingTimer( 750 ); // increase to 750 milliseconds
which I tried, but still nothing. I did look at the FireBug NET log and I notice that when I click on a link to be tracked the request just keeps waiting (looping?).