---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://yandex.com/support/varioqub/en/objects/get-param.md
  - https://yandex.com/support/varioqub/ru/objects/get-param.md
  - https://yandex.com/support/varioqub/tr/objects/get-param.md
  - href: en/objects/get-param.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

# getParam

Calls the [init](https://yandex.com/support/varioqub/en/objects/init.md) method and returns the site user's ID (`i`) in the callback function.

```javascript
ymab('metrika.XXXX', 'getParam', callback);
```

<!-- source: en/_includes/connect/detail.md -->
where `XXXX` is the ID of the Yandex Metrica tag installed on your site.
<!-- endsource: en/_includes/connect/detail.md -->

#|
|| **Parameter** | **Type** | **Required** | **Description** ||
|| ##getParam## 
| 
String 
| 
Yes 
| 
Initializes the experiment and returns the ID of the sample the user is part of ([icookie](https://yandex.com/support/varioqub/en/objects/ymab.md#icookie)). 
||
|| ##callback## 
| 
Function 
| 
Recommended 
| 
Calls the callback function.

Pass this parameter to get additional information.

Format: `(arg: string) => void` ||
|#
