You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, ym is written with fire-and-forget use case in mind, so apparently it won't work.
I would suggest two possible solutions:
if you're sure that the counter is ready by the time you're going to call getClientID, then just use window['yaCounterXXXXXX'].getClientID(), it's there;
otherwise, ym could probably rely on triggerEvent parameter and return a promise.
Hello.
Yandex Metrika has method
getClientID
. This method return some value.But i can't take this value in ym:
https://yandex.ru/support/metrika/objects/get-client-id.html
The text was updated successfully, but these errors were encountered: