How do I keep track of how many times an external link is clicked?

wootwoot picture wootwoot · Jan 12, 2011 · Viewed 9.8k times · Source

I have a site affiliated with a university and we want to link to another site that has a certain teaching program.

How can we track the number of times this link has been clicked from within our website?

Answer

AnthonyHurst picture AnthonyHurst · Jan 12, 2011

I would use jquery and/or ajax to touch a page in the background (ajax) that counts hits whenever a link is clicked and then proceed to allow the link do what it does.