params

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 session parameters.

Attention. Some of the field names are reserved for transmitting e-commerce data. Do not use these names to send session parameters. Do not send your custom parameters with reserved ones.
params(parameters)

Parameter

Default value

Type

Description

parameters *

Object | Array

Session parameters. Example of sending an object:

var myParams = {test: {myParam: 123}};
yaCounterXXXXXX.params(myParams);

Example of sending an array:

var myParamsArray = [{test: {myParam: 123}},
{test: {myParam: 456}}];
yaCounterXXXXXX.params(myParamsArray);

* Required parameter.