# Click tracking Macro for SSP's

**Отслеживание кликов**

Поддержка отслеживания кликов через макрос. Макрос можно использовать для баннеров, но **не рекомендуется** применять для видео-, аудио- и нативных форматов рекламных материалов.

* **Макрос должен быть определенным** `${CLICK_URL}`
* **SSP обязан заменить макрос** на свой отслеживающий URL. Например:\
  `https://ssp.com/click?dst=`, где параметр `dst` принимает URL для редиректа (может быть в URL-кодировке или без).

**Пример подстановки:**

1. Исходная разметка в ответе на запрос:&#x20;

<pre class="language-html"><code class="lang-html"><strong>&#x3C;a href='${CLICK_URL}http://example.com/'>&#x3C;/a>
</strong></code></pre>

2. После обработки SSP:

```html
<a href='https://ssp.com/click?dst=http://example.com/'></a>
```

**Примечания:**

* SSP должен корректно обрабатывать URL в параметре `dst`, включая экранирование спецсимволов при необходимости.
* Для видео используйте отдельные методы трекинга например, событие `ClickThrough` в VAST.


---

# 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://docs.umg.team/main/udsp.io/click-tracking-macro-for-ssps.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.
