Answer the question
In order to leave comments, you need to log in
How to correctly add a goal to the Yandex Metrics link?
There is a link like this:
<a class="vp-a" href="https://www.youtube.com/video"><img src="http://mysite.com/wp-content/uploads/2017/02/video-1.png" /></a>
<a class="vp-a" href="https://www.youtube.com/video" onclick="yaCounterXXXXXX.reachGoal('ORDER'); return true;"><img src="http://mysite.com/wp-content/uploads/2017/02/video-1.png" /></a>
Answer the question
In order to leave comments, you need to log in
All right, what exactly is not working for you?
Add a parameter _ym_debug=1
to your request and check if the target fires in the console ( more info )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question