var submitted = false;
jQuery(document).ready(function(){
jQuery('.et_pb_contact').find('form').each(function(){
var jqForm = jQuery(this);
var jsForm = this;
jqForm.submit(function(event){
event.preventDefault();
if(!submitted){
submitted = true;
window.dataLayer.push({
'event': 'formSubmit'
});
}
setTimeout(function() {
submitted = true;
jqForm.submit();
},300);
});
});
});