foevah Posted June 10, 2009 Share Posted June 10, 2009 I have added the following jQuery after the google analytics code: $(document).ready(function() { $("#pre-book").attr("onSubmit", "pageTracker._trackEvent('Signup Forms','AMF Signup','Newsletter',2.0);"); }); this picks up the form with id pre-book and it adds the onSubmit code to it: onsubmit="pageTracker._trackEvent('Signup Forms','AMF Signup','Newsletter',2.0);" i did this yesterday and submitted my details into the form but when I look in google analytics event tracking overview this hasn't been detected? does anyone know what I am doing wrong? Link to comment https://forums.phpfreaks.com/topic/161639-google-analytics-track-form-submissions-using-jquery/ Share on other sites More sharing options...
foevah Posted June 15, 2009 Author Share Posted June 15, 2009 anyone know how to get this working? Link to comment https://forums.phpfreaks.com/topic/161639-google-analytics-track-form-submissions-using-jquery/#findComment-856229 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.