Answer the question
In order to leave comments, you need to log in
Yandex metric. What is the USER ID for? How to use it correctly?
Hello. Probably a stupid question, but I can't figure it out. The documentation has the ability to pass User ID from the system through userParams in its metric :
ym(12312312312321, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true,
userParams: { vip_status: false, UserID: <?= $user ? $user->getId() : null ?> } // <--- Вот так!
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question