Outgoing Link Tracking with Google Analytics is quite easy to setup both with the traditional or the asynchronous code. You can track outgoing certain link. We published lot of articles on Google Analytics, although Google Analytics itself has changed a lot, definitely the basics of these articles are quite important. Whatever Google officially tells, the evergreen facts of Outgoing links and SEO is still true today. Sometimes we need relevant, fully good outgoing link tracking system – Google Analytics itself has such system.
Outgoing Link Tracking with Google Analytics : Understanding the Basics
Outgoing Link Tracking with Google Analytics is possible with the Event Tracking method in the new asynchronous ga.js tracking code that enables the webmaster to record user interaction with website elements. Event Tracking data model has some components which map directly to elements in the Analytics Reports interface.
This is the current reference webpage :
We prefer the split code (reference) :
So, this is your minimum setup :
This function is named ‘push’ so that an array can be used in the place of _gaq before Analytics has completely loaded. While Analytics is loading, commands will be pushed/queued onto the array. It uses _setAccount to set the page’s web property ID and then calls _trackPageview to send the tracking data back to the Google Analytics servers. One line tracking is also possible :
Outgoing Link Tracking with Google Analytics : Now Make Clicking Trackable
So, we have added the var (variable), its funny that – even if a HTML5 button with tracker is clicked before the browser has fully finished loading, the event will be captured :
The names like Button 3 things are arbitrary in example. But, not that we always need a button ! What will happen in those cases where we want to track an in line link ?
Here is the solution :
You will simply add this within head as extra :
And this to link :
thecustomizewindows.com is the domain you are linking towards in this case. Now, actually its like normal HTML link, you can add itemprop, rel etc stuffs :
You will get the info of tracking on STANDARD REPORTS > Events > Event Category where you will see the Event Category and ‘Outbound Links’.