How to fix code objective metrics on the button to take a form submission?

Please help me to understand what am I doing wrong:
In the landing page all the buttons of modal Windows is done via a button;
In this tag I add code that reads the form post metric Yandex;
- Here is then a string with the button and the code objective metrics: button onclick="yaCounter56810131.reachGoal ('zakaz_zvonka'); return true;">Request a call - like this designed 6 goals on the landing page.

But the Metric does not consider the clicking of submit buttons of the forms.

Please help to understand, what am I doing wrong.
Thank you for your answer.
March 19th 20 at 08:39
2 answers
March 19th 20 at 08:41
Try to use the new code metrics

<input type="button" onclick="ym(56810131, 'reachGoal', 'zakaz_zvonka'); return true;" value="Order" />
Sergei put Your code, here is the link, but considers all the same. - Elmer.Bahringer commented on March 19th 20 at 08:44
@Elmer.Bahringer, when
the goal fulfills
Reach goal. Counter: 52880338. Goal id: zakaz_zvonka. Params: undefined

You have no filters set? - elroy.Schaefer31 commented on March 19th 20 at 08:47
Good afternoon, Sergey! Thank you for your answer!
no filters, no - Elmer.Bahringer commented on March 19th 20 at 08:50
I added Your current code to add targets, no input, as you have more styles to work to rewrite them for him.
Now I will write then a marketer, maybe something was done without my knowledge, and I then head to fool yourself and others.. - Elmer.Bahringer commented on March 19th 20 at 08:53
March 19th 20 at 08:43
that is, the form became broken)

Find more questions by tags Layout