document.addEventListener( 'wpcf7mailsent', function( event ) { ga('send', 'event', 'Contact', 'Submit Form'); }, false );