userParams
Transmitting custom parameters of site users.
ym(XXXXXX, 'userParams', parameters);
Parameter | Default value | Type | Description |
---|---|---|---|
parameters * | — | Object | |
Parameter | Default value | Type | Description |
---|---|---|---|
parameters * | — | Object | |
* Required parameter.
To transmit your own user ID, use the UserID parameter. You can choose any names for other user parameters.
Up to 1000 parameters can be transmitted in a single session. When the hierarchical data structure is transmitted, the Yandex.Metrica reports will display up to 10 nesting levels.
Information passed in the userParams method becomes available in reports within a few hours.
- In fields — 255.
- In values — 50.