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.

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.