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 need to track external (outbound) links from my SharePoint 2007 site. However, when I add the Google Analytics Event Tracking 'OnClick' code to the href SharePoint strips it out when I save the page. Is there another way to track outbound links or a way to have the code remain in the href? Thank you.

share|improve this question
up vote 1 down vote accepted

I've had to do this with jQuery in the past. On document ready, I'd look for any hyperlinks that were outside the domain and add an OnClick function.

share|improve this answer

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.