I use event tracking in the form of conversion to pass the values ββof several drop-down lists to Google Analytics as events. Our conversion form is a request form for our online programs. I only want to pass the field values ββin the submit form, so I added the following code to the code that runs when the form is successfully submitted:
$("#App,#InquiryForm").validate({ submitHandler: function (form) { $(".button").attr("value", "Please wait..."); $(".button").attr("disabled", "disabled"); _gaq.push( ['_trackEvent', 'Inq Form Academic Level', 'Academic Level', $('#AcademicLevel').val()], ['_trackEvent', 'Inq Form Delivery Time', 'Delivery Time', $('#CourseDeliveryTime').val()], ['_trackEvent', 'Inq Form Program Type', 'Program Type', $('#ProgramType').val()], ['_trackEvent', 'Inq Form Program', 'Program', $('#ProgramofInterest').val()] ); form.submit(); },
The goal is to be able to segment our traffic, which will be converted depending on what they were interested in. (For example, what was viewing visitors who were interested in our bachelor's degrees compared to those who were interested in our graduate diplomas).
Unfortunately, only the first tracking of script events is successful, and not the last three (no matter in what order I place them - the first of them is always the only successful).
If you can help me get this job, it will be fantastic! If not, maybe some alternative data mining suggestions I need?
thanks