document.addEventListener( 'wpcf7submit', function( event ) { if ( '1039' == event.detail.contactFormId ) { gtag('event', 'Wyslij', { 'event_category': 'Formularz' }); } }, false );