Contact Form 7 Track submit fields errors

I use this code:

<script>
document.addEventListener( 'wpcf7invalid', function( event ) {
ga('send', 'event', 'Contact Form', 'SubmitError');
}, false );
</script>

to track fileds errors.
Everthing is fine but i just want to add also the class of the filed, and track with dom-event wpcf7invalid also the class of the fileds.

Can someone help me with that?
Thank you!

Read more here: Contact Form 7 Track submit fields errors

Leave a Reply

Your email address will not be published. Required fields are marked *