There are couple of ways you can track an outbound link in Google Analytics (GA) Using _trackPageview or by utm method. Let us first see the difference between these two methods.
The utm method involves telling GA what the campaign name is (you define this), the source (typically something like Google), and the medium (typically something like PPC) – as well as a few other options. This method is most commonly used in tracking PPC campaigns (as Google AdWords does this automatically), email campaigns, and other external campaigns that link back to your site.
If you choose to tag your links with utm, it erases all referral information. In other words, if someone arrived at your site via a Google organic search; but they then clicked on an internal link that had the utm tagging, you lose the insight that the visitor originally came from the Google organic search (the source and medium). Instead, you see the new source and medium information that you manually entered. For me, that’s not a good option. I need to know where the visitor came from as much as I need to know what internal links they’re clicking on.
Lets track an exit link on a webpage using _trackPageview method.
Open the web pages with the links in your web page editing software. Locate the link you would like to track.
Thus after adding the onclick event, the link might look like:
Save the web page file. Upload it to your website.
Verify that your links are being tracked by checking your log in Google Analytics after a day or two. Your links appear in the “Top Content” report. The links you added tracking code to should now appear in the report.
With Google Analytics it is very simple and easy to track an outbound link.