This topic is: not resolved
-
Hi!
I need to track events through Yandex.metrics when clicking on a button or sending a form successfully.
The code looks like this ym (XXXXXX, ‘reachGoal’, ‘TARGET_NAME’),
I usually use a construct like this <input type = “button” onclick = “ym (XXXXXX, ‘reachGoal’, ‘TARGET_NAME’); return true;” value = “send” />
or <button onclick = “ym (XXXXXX, ‘reachGoal’, ‘TARGET_NAME’); return true;”>
How should I use with your form?
If insert in Additional settings ym (XXXXXX, ‘reachGoal’, ‘TARGET_NAME’), then it’s doesn’t works