# Цель: заказ

## Цель «JavaScript-событие» <a href="#ariaid-title1" id="ariaid-title1"></a>

При создании цели указывается ее идентификатор. При достижении цели вызывается метод [reachGoal](https://yandex.ru/support/metrica/objects/reachgoal.html), в который передается указанный идентификатор.

1. В Метрике перейдите на страницу **Цели** в левом меню и нажмите кнопку **Добавить цель**.
2. В поле **Название** укажите имя **"Заказ с сайта"**
3. Выберите тип цели **JavaScript-событие**.
4. Укажите нужное условие и идентификатор цели **"ORDER\_COMPLETE"**.
5. Нажмите кнопку Добавить цель. Созданная цель отобразится в списке целей. Метрика начнет сбор статистики по ней в течение нескольких минут.

<figure><img src="/files/zlJRPA0l6kBaSjID3XJ1" alt=""><figcaption></figcaption></figure>

6. Скопируйте идентификатор цели (в примере это - 178332169) и укажите их в [настройках MARKET](/market/nastroika-shablona.md#shag-2) в соответсвуюущем поле

<figure><img src="/files/UiJUYXDV9wLcZ2dBCDn8" alt=""><figcaption></figcaption></figure>

7. [Проверьте](https://yandex.ru/support/metrica/general/check-goal.html#check-goal), правильно ли работает цель.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.morozovpimnev.ru/market/yandeks.metrika/cel-zakaz.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
