K
K
kimqar2020-09-28 12:31:22
MODX
kimqar, 2020-09-28 12:31:22

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

1 answer(s)
D
Danny Arty, 2020-09-28
@kimqar

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 question

Ask a Question

731 491 924 answers to any question