userParams

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 custom parameters of site users.

userParams(parameters)

Parameter

Default value

Type

Description

parameters *

Object

User parameters.

yaCounterXXXXXX.userParams({
    status: "Gold",
    child: 1,
    child_age: 13
});

* Required parameter.

The maximum number of characters shown in Yandex.Metrica reports:
  • In fields — 255.
  • In values — 50.
Note. The information transmitted in the userParams method will be available in Yandex.Metrica reports in a few hours.