Advanced download tracking

Hi everyone,

I have a server offering file download. There is no problem with tracking downloads made with browser. I want to ask if there is possibility to track downloads made without using browser and usual tracking.

My idea:
I send a link of some file to my friend a he downloads it directly. When the server gets the request for the file he sends some message to Piwik and Piwik records one file download.

Is it even possible to do something like this?

Thanks for any answer.

Not by serving the file directly.

You could try something like:


This is perhaps better explained in your config/global.ini.php.