Okay, I got this working on one website and then I tried it on another website (different web server) and it is not working… I made sure my php.ini has
allow_url_fopen = On
and that mod_security has been whitelisted. I also checked the NET Panel on Firebug and the request to piwik.php is successful. Anything else I should check? The tracking works if I use the normal tracking code.
There are three header(…) lines in piwik.php which I edited on the website I am trying to track. I looked and there are no errors at all. Does register_globals need to be on?
Just strange since this works on another website/server.
I’ve just started testing this but have ran into a problem.
This is installed on a Wordpress blog and I can access the piwik.php but when it is accessed with parameters Wordpress is grabbing it and giving me a 404.
I am sure I need to add a rule to the .htaccess file but for the life of me I can’t get it to work.
I went through the trouble shooting steps above that’s where I found the 404 error.
sspy
I tried your code you posted.
got following error:
File does not exist: /var/www/html/piwik.js
interestingly in the php file I have the don’t have the link to a html directory it points to the website with the piwik files
any Idea please
SuperTT, I’m having the same problem you mentioned here, but I’ve change the SITE ID on the last line of the SCRIPT CALL! Everything works great if I use the code provided from the Settings - > Websites tracking code, but when I modify the PHP Proxy code in the HTML it only works for the first website.
What did you make the last line point? The Website to be tracked or the Piwik Stat Server? It seems to me you make it the website to be tracked or the whole point of a footprint would be nullified.
Also what are you referring to about the mod_security issue?