Answer the question
In order to leave comments, you need to log in
ModX problem with yandex metric goal and google captcha when submitting a form?
The site has a formit-form with Google captcha and a connected Yandex metric. When submitting an unsuccessful form (if the captcha fails), agax submits the form and shows an error when the form submit fails. But Yandex Metrica counts this as a successful attempt, and writes that the goal has been achieved. How to make sure that if the attempt fails, Yandex metric does not count the goal? Website: www.reacenterkrd.com
Answer the question
In order to leave comments, you need to log in
You apparently have a trigger on the goal when the button is pressed, but you need to put onsubmit on the form.
Or if your form calls via AjaxForm, then you can add:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question