title: Sharepoint 2010: Tracking Clicks on Link to a Document Content Type: Store and Update Values in a Custom List by using jQuery.
body: <p>Due to several system limitations (IE8, structure of our sharepoint setup, etc...) we are unable to use the standard site analytics webpart featured in SP2010 to generate a ranking of most viewed files within any given scope of a site collection. Additionaly, all of our sharepoint libraries that are publicly visible are only accessible by means of a shortcut, i.e. they are all of the "link to a document file type". I was wondering, if anyone has experience in accomplishing the following by means of jQuery or Javascript:</p>
  
  <ol>
  <li>Register Click on any given "Link to a Document" within any Library of a given page</li>
  <li>If it is the first time that link was clicked on: Store Name of the File Shortcut in a previously created list and set "nr. of clicks" value to 1</li>
  <li>Anytime a shortcut is clicked on again: update the value (=Nr. of clicks) in the created custom list.</li>
  <li>Sort the list by most frequently clicked shortcuts.</li>
  </ol>
  
  <p>The goal is to provide users with a top 10 list regarding most frequently viewed files on any given sharepoint site.</p>
  
  <p>Thanks upfront for any support at all!</p>