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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: