C
C
Chembrovich2017-03-02 09:12:19
JavaScript
Chembrovich, 2017-03-02 09:12:19

How to set up goal achievement in Yandex.Metrica via javascript?

Good afternoon!
You need to set the Yandex.metric target to the search button.
During the start of the search, the Track event is triggered by trying the script, but so far unsuccessfully:
$(document).trigger("analyticsStartSearch");

$(document).on("analyticsStartSearch", function(){
    yaCounterXXXXXX.reachGoal('TARGET_NAME');
    return true;
});


What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom Innokentiev, 2017-03-02
@artinnok

reachGoal event
See here for more details:
b0ecee4b672f45bbbaa9c79339753613.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question