Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    See edit, open the download link in a new tab. Most browsers are set to close the tab if they detect a file download like this. Commented Mar 18, 2014 at 0:15
  • 1
    thanx a ton.i was search whole night for this. Commented Mar 18, 2014 at 0:21
  • just take note that, this is not a reliable way of tracking downloads, you can just extract http logs from your web server for a more accurate statistics.. Commented Mar 18, 2014 at 2:14
  • 1
    @YogeshLakhotia it depends on what web server you are using, a high level design would be to use regex to extract the statistics Commented Mar 18, 2014 at 10:18
  • 1
    it all really depends on what web server and how the logs are written, saving to db using ajax is not the best way to go definitely, i'd rather use google analytics events to track those Commented Mar 18, 2014 at 16:07