getExperiments

Calls the init method and returns an encrypted set of experiments that involve the site's users in the callback function.

ymab('metrika.XXXX', 'getExperiments', callback);

where XXXX is the ID of the Yandex Metrica tag installed on your site.

Parameter

Type

Required

Description

getExperiments

String

Yes

Initializes the experiment and returns the user parameters set when connecting the experiment or using the Usersplit API*.

callback

Function

Recommended

Invokes the callback function.

Pass this parameter to get additional information.

Format: (arg: string) => void

To use it in the experiment, activate the extended version.

Previous