document.addEventListener( 'wpcf7submit', function( event ) { if ( event.detail.contactFormId == '4213' ) { ga('send','event','CF7_Submission','Submit','Ajánlatkérés_főoldal'); } }, false );