Google Analytics

You can use the quform:successStart JavaScript hook to send an event to Google Analytics when the form is submitted.

Go to Forms → Settings → Custom CSS & JS and at the Custom JavaScript field enter the following code.

1
23
4
5
jQuery(document).ready(function ($) {
    $('.quform-form-1').on('quform:successStart', function () {        ga('send', 'event', 'Contact Form', 'submit');
    });
});
jQuery(document).ready(function ($) {
    $('.quform-form-1').on('quform:successStart', function () {
        ga('send', 'event', 'Contact Form', 'submit');
    });
});
  • On line 2, replace the number 1 with the form ID

Still having trouble? Head over to the forums.

Forums