document.addEventListener( 'wpcf7mailsent', function( event ) { gtag('event', 'submit', { 'event_category': 'Contact Form', 'event_label': 'WebForm' }); }, false );
Before
After