G
G
gmg2017-01-17 12:54:24
JavaScript
gmg, 2017-01-17 12:54:24

Yandex metric. reachGoal not working?

Good afternoon.
Tracking four events for four goals. Opening, closing, filling out and submitting a form.
But for some reason, Yandex in Summary -> Conversions, displays just opened and closed the form, but does not display sending and filling, although I called alert everything is fine, the code is without errors. And the graph shows that supposedly I clicked once, although I closed and opened the form several times.
In the event code

$('html').on('click', '#main_center > div.text_block > div.project_calcbtn > a', function() {yaCounter1759.reachGoal('ФОРМА Расчет стоимости (Открытие)')});
  $('html').on('click', '#calc_blk > div.closem', function() {yaCounter1759.reachGoal('ФОРМА Расчет стоимости (Закрытие)')});
  $('html').on('click', '#calc_phone', function() {yaCounter1759.reachGoal('ФОРМА Расчет стоимости (Заполнение)')});

// И отправка там в аджаксе прописана, тоже работает.

Links open, close
<a href="javascript: $().showCalc();"><span>Расчёт стоимости</span><div class="calcicon"></div></a>
<div class="closem" onclick="jQuery.arcticmodal('close');"></div>

What is my jamb?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question