Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a SharePoint page with several hyperlinks pointing to different document downloads. I would like to log information everytime someone clicks a hyperlink. More specifically, I would like to keep a log of which document is downloaded, the user's name and/or username, and information from their profile (ie: Department, phone number, etc). The solution must exist within the SharePoint site because I do not have access to the physical server or its server logs.

I am very new to SharePoint. I heard that you might could add Javascript to the page, but I have no idea what to add or even how to add it. Also, there may be a web-part that could do this functionality, but I haven't been successful in finding one. Does anybody know of anyway to do this? HELP!!

share|improve this question

1 Answer 1

If you are looking to track content within SharePoint itself, then SharePoint's own Audit logs should solve that request. They can track whenever any content in SharePoint is viewed, when and by whom. The reports are also available directly from the web UI though they are not as user-friendly as they could be.

For tracking all clicks. you might want to look at this for some ideas.

share|improve this answer
    
Can you point me to where the Audit Logs show where the content is "viewed, when and by whom"? I see that I can set an option that shows "Opening or Downloading Documents" but the log just shows what items were opened or viewed, not who opened or viewed them. –  JohnnyB Apr 15 '13 at 16:19
    
Click on the Report Data tab and you will see the User Id of the person who took the action –  Dave Wise Apr 15 '13 at 16:36
    
Ohh nice, I see that now. Great! Ok, so this seems to generate alot of logs that I really don't need. Do you know if it can be done on a per-page basis rather than per-site? –  JohnnyB Apr 15 '13 at 16:40
1  
The auditing itself is per site collection but the reports have a basic filter of per list or per user but anything beyond that is left to the user to do in Excel. However, SharePoint only keeps 60 days of audit data so don't worry about overflowing your database. That is also important to know in case you wanted to keep a long-term historical record as you will have to either pull this data periodically or disable the Audit cleanup timer job (not recommended) –  Dave Wise Apr 15 '13 at 17:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.