Created
June 1, 2016 08:33
-
-
Save notrab/571819522cce7666355095d9f9d5f31f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$(document).on('ready', function() { | |
return this.on('#enquiry-modal submit', 'form[data-analytics-submit]', function(e) { | |
if (window.ga) { | |
return window.ga('send', 'Send Message', $(this).attr('data-analytics-submit'), 'submit'); | |
} | |
}); | |
}); |
This file contains hidden or 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
= simple_form_for [@enquiry], remote: true, data: {analytics_submit: 'Contact Form'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment