Last active
August 29, 2015 14:21
-
-
Save Cheffheid/8822205f9d9edd188d89 to your computer and use it in GitHub Desktop.
Simple Universal Analytics event trigger for Gravity Forms (No AJAX)
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
// Add this to the confirmation page or confirmation text box on forms where AJAX is disabled. | |
// It will fire as soon as the confirmation page is loaded. | |
(function($){ | |
$(document).ready(function(){ | |
// Send event with category 'Form', action 'Submit', label 'Contact Us', and value 100. | |
ga('send', 'event', 'Form', 'Submit', 'Contact Us', 100); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment