Answer the question
In order to leave comments, you need to log in
How to add a target (javascript event) Yandex metrics to a widget button?
Please help me to set the goal of the metric onclick="yaCounterXXXXXX.reachGoal('ORDER'); return true; on the widget button
Task: When the button is pressed, communication methods pop up - set goals on them so that they can be tracked. Below are screenshots for clarity.
Widget code - https ://jsfiddle.net/08y7cd3n/
Please tell me where to put the goal code for everything to work.Thanks
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