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 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
add comment

1 Answer

up vote 0 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
add comment

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.