narkq / react-yandex-metrika

React component for Yandex.Metrika
128 stars 25 forks source link

Doesn't work api method - getClientID #10

Open bratva opened 6 years ago

bratva commented 6 years ago

Hello.

Yandex Metrika has method getClientID. This method return some value.

yaCounterXXXXXX.getClientID() // id

But i can't take this value in ym:

ym('getClientID') // undefined

https://yandex.ru/support/metrika/objects/get-client-id.html

narkq commented 6 years ago

Well, ym is written with fire-and-forget use case in mind, so apparently it won't work. I would suggest two possible solutions: