---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://yandex.com/support/varioqub/en/objects/ymab.md
  - https://yandex.com/support/varioqub/ru/objects/ymab.md
  - https://yandex.com/support/varioqub/tr/objects/ymab.md
  - href: en/objects/ymab.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/varioqub/en/llms.txt

# ymab

The `ymab` function enables you to send various data:

```javascript
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](https://yandex.com/support/metrica/en/general/tag-id.html)
||
|| ##method##
|
String
|
Yes
|
JavaScript API method:

- [init](https://yandex.com/support/varioqub/en/objects/init.md)

- [getParam](https://yandex.com/support/varioqub/en/objects/get-param.md)

- [getFlags](https://yandex.com/support/varioqub/en/objects/get-flags.md)

- [getExperiments](https://yandex.com/support/varioqub/en/objects/get-experiments.md)

- [setConfig](https://yandex.com/support/varioqub/en/objects/set-config.md)
||
||
##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](https://yandex.com/support/varioqub/en/unload-data.md).
||
||
##client_features##
|
Object (Record&lt;string, string&gt;)
|
No
|
User parameters[*](*parametr).

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
|
Calls 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.
||
|#

[*parametr]: To use it in the experiment, activate [the extended version](https://yandex.com/support/varioqub/en/paid-functionality.md).
