I\'m working on a tracking script for a fairly sophisticated CRM for tracking form actions in Google Analytics. I\'m trying to balance the desire to track form actions accuratel
Another approach:
var pageTracker; _gaq.push(function() { pageTracker = _gat._getTrackerByName(); }); $('form').submit(function(e){ pageTracker._trackEvent('Form', 'Submit', $(this).attr('action')); };
I would guess this way _trackEvent would be synchronous but I haven't tested it.