Tip. Working with the JavaScript API requires knowledge of HTML and JavaScript. If you don't have these skills, contact your website developer or webmaster.

Transmitting the site user ID set by the site owner.



  • XXXXXX is the counter number.
  • 12345 is a string value.
The site user ID is associated with the ClientID

The site user‘s ID assigned by Yandex.Metrica.

for a site visitor only if this method was called during the session. To get more complete statistics, we recommend waiting some time until a larger volume of data is transmitted to Yandex.Metrica.