setUserID

Warning

Working with the JavaScript API requires knowledge of HTML and JavaScript. If you don’t know these languages, contact your website developer or webmaster.

Transmitting the site user ID set by the site owner.

ym(XXXXXX, 'setUserID', "12345");

where

  • XXXXXX — Counter number.
  • 12345 is a string value.

Custom IDs will be linked to ClientID only for those site users during whose sessions the setUserID method was called.

Chat with us

Write an email

Please note: Our support team will never initiate a call to you. Do not follow any instructions of people who call you and introduce themselves as the Yandex Metrica support team.


Unique website session ID created automatically by Yandex Metrica.