F
F
futbol132018-12-08 16:15:36
JavaScript
futbol13, 2018-12-08 16:15:36

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.
5c0bba1203162550966566.png5c0bba1ed5c7d935552427.png
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

1 answer(s)
A
Ainur Valiev, 2018-12-09
@vaajnur

in template

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question