I know it's possible and I know what you need to do, but not code. I want to track the downloads of song.mp3 for example.

What I think you can do it make a page called song.php and in that is some tracking code, and when the tracking code has been executed it sets the headers to the MP3 file.

How can I do this?