I would just like to be sure that I am understanding correctly …(and I didn’t dind a direct answer in the other posts)
Piwik tracks downloads of pdf files by tracking clicks on a link to that pdf file on a page which has the Piwik tag included … right?
So, if someone else links directly to my pdf file from another website then downloads of the pdf file from this source will not be recorded … is that correct? Is there any way around this problem?
If you don’t want to use the Piwik Tracker via PHP, you could have a clientside proxy, links would still look something like : http://servername/getFile.(php|asp|…)?name=filename but instead of serving the file directly, you would output in the html the direct link to your pdf file : http://servername/filename.pdf.
If you don’t want users to find out direct links to your file and don’t want to use the PHP Piwik Tracker, you can use a mix of both methods.
So we should manage to get that working … if anyone has the precise Piwik call we should make from inside that PHP then perhaps you could post it here … Otherwise we’ll figure it out (just haven’t got around to it yet). Also if anybody who unlike me knows PHP well and confirm to me that this script has no security worries, then that would be good too