This is the perfect use case for tracking Google Analytics events . This is fairly easy to implement, although you will need a Google Analytics account (obviously). Here is sample code in jQuery.
$(function() { $('#myDownloadLink').click(function() { var tracker = _gat._getTracker('UA-xxxxxx-x'),
Using GA allows you to access your analytics everywhere and gives you a decent set of filtering tools. In fact, if you need more detailed information, you can track it as a pageview, and not (or how) an event:
tracker._trackPageview('/download/' + href);
You can even add the current page to this to find out where the download came from. You will receive information about the browser, operating system, screen resolution, country of origin, etc.
source share