SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using SharePoint 2007 to run a website. I'd like to track downloads, outbound links, videos, etc. So far, i've read that event tracking can do this for me, but not sure where to place it since it comes with some javascript to plugin in the head of the page. I tried this and it threw back an error with the layout. Now I'm wondering if i should be dropping the javascript code in the master or layout page for sharepoint. Has someone encountered this issue? Thanks in advance! Nat

share|improve this question

You'd want to put the code into the head of the master page.

share|improve this answer
Thanks for your reply. Is there any othe place i can place it? What if i only want to track outbound links for only one page in the whole site? – user15729 Mar 20 '13 at 19:32
Then you could save the js code as a js file in a document library and add it to a page via the content link in a content editor web part. – Eric Alexander Mar 20 '13 at 19:38

Your Answer


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.