Answer the question
In order to leave comments, you need to log in
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('ФОРМА Расчет стоимости (Заполнение)')});
// И отправка там в аджаксе прописана, тоже работает.
<a href="javascript: $().showCalc();"><span>Расчёт стоимости</span><div class="calcicon"></div></a>
<div class="closem" onclick="jQuery.arcticmodal('close');"></div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question