Created
August 6, 2020 11:19
-
-
Save techjewel/6cb75bfebb2423346e371cda1c807744 to your computer and use it in GitHub Desktop.
Track Events by Google Analytics for a form in Fluent Forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gtag('event', 'ViewForm', { | |
'event_category': 'FluentForms', | |
'event_label': 'View Form', | |
'form_id': formId | |
}); | |
$form.on('fluentform_submission_success', function() { | |
gtag('event', 'FormSubmission', { | |
'event_category': 'FluentForms', | |
'event_label': 'Form Submitted', | |
'form_id': formId | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment