ymab

The ymab function enables you to send various data:

ymab(client_id, method, icookie, client_features, callback)

Argument

Type

Required

Description

client_id

String

Yes

Yandex Metrica user ID.

Format: metrika.{counter_id}, where {counter_id} is the Yandex Metrica tag ID. How to find the tag number

method

String

Yes

JavaScript API method:

icookie

String

No

ID of the sample the user is part of.

The ID list can be obtained using the Logs API, while the sample ID can be found in the Varioqub report.

Learn more about exporting experiment data.

client_features

Object (Record<string, string>)

No

User parameters*.

In the parameters, you can pass the properties of your site's users. For example, you can pass the site authorization flag.

callback

Function

No

Invokes the callback function.

The argument format depends on the passed method.

Use this parameter if the Varioqub response requires special processing, such as applying flags when re-rendering a page.

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