This is the code I input into my website for an email link click: <a href="mailto:" onclick="_gaq.push(['_trackEvent', 'Email', 'Click', 'Email Link Click',, false]);"></a> It has not tracked anything yet....does the code look incorrect? I went to my GA dashboard and checked under Behavior > Events and it does not display any events.
According to https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide the code should be like this: <a href="#" onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);">Play</a> i.e. 4 paramers inside the array. You have 5 + probably bad syntax of two commas without anything between.
Yea that is the page I used to figure it out. I changed it to this: email: <a href="mailto:" onClick="_gaq.push(['_trackEvent', 'Email', 'Click',]);"></a> The other parameters were optional so I am assuming this will work.
I wrote this a few months ago. I think this is really helpful for anyone trying to get into event tracking. Could be tricky depending what version of code you are using. http://stackoverflow.com/questions/21333665/google-analytics-event-tracking-code/21466522#21466522