Every software I ever programmed follows bit.ly links once and insert the original url into the database. From then on, users can always go to the url directly. Don't hold your breath for the accuracy of bit.ly link tracking.
You can theoretically set up Google Analytics to follow outbound links.
Re:On Medium
by raymondduke on Monday July 01, 2013 @03:17AM
(#5969208)
Seems too complicated.
Re:On Medium
by ricardobeat on Monday July 01, 2013 @03:50AM
(#5969296)
This is something that Medium itself could set up for you.
If you want something simpler, just paste this into your page: https://gist.github.com/5899046
Bit.ly is also useful in that you can use the same link across the web and have analytics all in one place. Otherwise you'd need to check medium to track links you posted there, and some other site for links from there etc.
I'm not sure how you can track links via javascript, but I do know how to make a bit.ly link.