Answer the question
In order to leave comments, you need to log in
How to correctly specify (call) Yandex Metrika in the angular function?
I don't understand how can I call the ym function in this function?
My function is called upon successful sending, I did it here, but the function itself does not want to be an error.
Simple question, but I don't know what to write here to make it work:
sendYM() { // позже вызывается при успешной отправки сообщения
window.ym(xxxxxxx, 'reachGoal','success_send '); return true; //также пробовал просто ym, но это также не работает .. нужно просто заставить работать
}
Answer the question
In order to leave comments, you need to log in
Something I'm stupid, your problem may be simpler.
Try
A general https://ourcodeworld.com/articles/read/337/how-to-...window['ym']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question