Mattpx
8 years agoGuide
Google event tracking on user registration
Hello,
I am trying to fire an event on user registration, I currently have the following code which is not optimal since it is triggered even if the registration fails. Is there a success page or a javascript callback I can use when the registration is successful?
$('.lia-component-user-registration-form').submit(function() { ga('send', { hitType : 'event', eventCategory : 'Registration', eventAction : 'submit' }); });
Thank you!
Matt