Answer the question
In order to leave comments, you need to log in
Why is the goal in the metric triggered when an empty form is submitted?
Hello!
I set the goal in the metric for sending the application, wrote the code in the form tag
<form action="mail/smart.php" method="POST" id="feedback-form" onsubmit="yaCounter53521924.reachGoal ('ask'); return true;">
Answer the question
In order to leave comments, you need to log in
The matter is that onsubmit works when the user presses the submit button of the form. regardless of whether it was sent or you somehow canceled the sending
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question