userParams
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 custom parameters of site users.
ym(XXXXXX, 'userParams', parameters);
Parameter |
Default value |
Type |
Description |
|
: |
Object |
|
To transmit your own user ID, use the UserID
parameter. You can choose any names for other user parameters.
up to 512 parameters can be sent in one session. When you send hierarchically structured data, the Yandex Metrica reports display up to 10 nesting levels. For more information, see Restrictions.
Information passed in the userParams
method will appear in reports within a few hours.
The maximum number of characters shown in Yandex Metrica reports:
- In fields — 255.
- In values — 50.
Useful links |
Online training |
Required parameter.