Answer the question
In order to leave comments, you need to log in
How to add events from Yandex Metrics?
There is a Yandex metric module, there are events, I need to write a control code for the button, that is, as I understand the event for the button, how to do this? And I don’t have access to add goals in Yandex metric, this will be done by the site owners themselves, I need just register these events in the layout
Answer the question
In order to leave comments, you need to log in
i.e. I just need to add the name of the future event and bind it to the button, and the site owners will already create this event with the same name.
As I understand it, I need to add code to the link, for example
<a href="/catalog" onclick="yaCounter23000269.reachGoal('SOB'); return true;">
?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question