You’ll want to choose one that uses a 301 redirect for certain. I’ll use jQuery 1.x for this example since most sites use it but you can substitute a lightweight option such as min.js, Zepto.js, Minified.js or your own event handling functions. If you use an affiliate plugin to format your affiliate links into something like this then you will have to enable tracking of internal links as outbound links.
However, Google Analytics can also provide you information about what users do when they come on your website, which banners or links they click the most, what product placements are working better on your website, which social media campaigns are bringing you more traffic, etc. We want tracking to work everywhere so I recommend using a library with robust cross-browser event handling. SOCIAL as a short and memorable name that forwards directly to your LinkedIn profile. Finally, URL shortening sites provide detailed information on the clicks a link receives, which can be simpler than setting up an equally powerful server-side analytics engine, and unlike the latter, does not require any access to the server. Your link stats will also be public if you use this service. Another privacy problem is that many services' shortened URL format is small enough that it is vulnerable to brute-force search.
Your link stats will also be public if you use this service. Twitter will use this to make your timeline better. Google’s URL Shortener is handy, though it does allow anyone to access the public analytics on each link. They keep URLs that are loaded with UTM tracking tags from looking ugly by hiding the length and characters in the UTM tracking system. The last thing that any website owner wants is to discover that his or her website has been blacklisted and removed from search engines. All you need to do is register the domain and make a few changes to the domain configuration.
See if you are using Classic Analytics (ga.js) or Universal Analytics (analytics.js).