So just to be sure, I replace ga with _gaTracker and it should send the events?
add_action( ‘wp_footer’, ‘mycustom_wp_footer’ );
function mycustom_wp_footer() {
?>
<script type=”text/javascript”>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
ga( ‘send’, ‘event’, ‘Contact Form’, ‘submit’ );
}, false );
</script>
<?php
}
I have the same issue my form is delayed about 5 seconds which means people are sending the form multiple times, i have disabled the plugin which then makes it run smooth, i look in the log but is empty ps very nice plugin.