Metrica

getClientID

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.

Getting the site user ID assigned by Yandex.Metrica.

yaCounterXXXXXX.getClientID()

Response format:

"12345"

where

  • XXXXXX is the counter number.
  • 12345 is a string value.