I'm trying (having trouble) to track clicks on a button on a page using Google Analytics. I'm using the below code. I've also attached a screen shot of the configuration. Can someone tell me why its not working? <a href="http://www.website.com/" onClick="_gaq.push(['_trackEvent', 'Signup', 'Click', 'Clicking on Signup Page']);">Button Image</a> Code (markup):
So I figured out what the problem was. I had upgraded my Google Analytics to Universal Analytics but the Event Tracking code that I was using was of the older format. Here is a page to read more about Even Tracking using Google Universal Analytics: https://developers.google.com/analytics/devguides/collection/analyticsjs/events#crossbrowser
I'm glad you figured it out. Sometimes, all it takes is forgetting one tiny syntax of code. Then, the entire thing doesn't work.