How to track download file from website?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi all,

I want to track how many times visitor download file from my website,
for example, when visitor click on a download link, a ASPX page will be
requested, after that it will redirect to a file stored on my web site,
final visitor will see open/save file dialog,

how to do that, or is there an example code do this work?
thank you,

.