I\'m trying to set up event tracking so that I can track when someone goes to my \'about\' page and clicks on a link to my LinkedIn profile. Below is the link that I want tracke
What you have there is correct and your events should show up in Google Analytics under Events. There are two ways to track outbound links:
Quick Method target="_blank"
A quick method to track outbound links is to append the target="_blank"
attribute. That way, the new page will open in a new window and the current page will have time to track the event.
Alternate method - delay page load First, delay the outbound click by a fraction of a second.
Next, revise outbound links to call the new function without first following the link.