---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.1
alternate:
  - https://yandex.ru/dev/metrika/en/logs/param.md
  - https://yandex.ru/dev/metrika/ru/logs/param.md
  - href: en/logs/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.ru/dev/metrika/en/llms.txt

# Parametrization

The Yandex Metrica Logs API supports parameter setting based on _parameterization_. This feature is available for most fields.

Using parameterization, you can specify the [attribution model](https://yandex.com/support/metrica/reports/attribution-model.html). The parameter is specified in angle brackets: `<>`. For example, `ym:s:<attribution>TrafficSource`.

Possible values:

- `first`: The first source.
- `last`: The last source.
- `lastsign`: The last significant source (used by default).
- `last_yandex_direct_click`: The last click from Yandex Direct.

The values that define [cross-device attribution](https://yandex.com/support/metrica/reports/attribution-model.html#cross-device) are also available:

- `cross_device_first`: The first source, including sessions from all the user's devices.
- `cross_device_last`: The last source, including sessions from all the user's devices.
- `cross_device_last_significant`: The last significant source, including sessions from all the user's devices.
- `cross_device_last_yandex_direct_click`: The last click from Yandex Direct, including sessions from all the user's devices.
- `automatic`: Automatic attribution. For more information, see [Help](https://yandex.com/support/metrica/reports/attribution-model.html#attribution-model__auto).

You can also specify the attribution model explicitly, for example, `ym:s:lastTrafficSource`.
