I know this subject has been discussed several times but I cannot find a post or some documentation to confirm if what I did is correct and where the problem might be.
The URL appears correctly and file downloads correctly, when I go see my PIWIK statistics under actions download, I do not see any trace of the download and i see “There is no data for this report.”
Maybe check that when you click on the link there is JS error? Also in the browser developer console you should seet he HTTP requests leaving to PIwik when you click ?
I was using the joomla plugin which did not provide functionality for the “piwik_download” class. I have added the javascript directly to the template and it now works very well. I also added the target=“blank” to make sure the download is counted on all browsers.