---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.com/support/adfox/en/banners/events.md
  - https://yandex.com/support/adfox/ru/banners/events.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/adfox/en/llms.txt

# Events in banners

## How to use events {#about}

Adfox can track the number of impressions, clicks, and other events related to your banners. For example:

- Let's say you want to know how many people watched your video clip to the end or to the middle and how many people closed it immediately.
- You want to add certain effects when a user hovers over your banner.

All standard events are specified in predefined [templates](https://yandex.com/support/adfox/en/ad-inventory/settings/template.md) and are called automatically. The list of events depends on the banner format. For more information, see [banner format requirements](https://yandex.com/support/adfox/en/banners/specs/index.md).

{% note info %}

The “IMS” <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.28958 0L10.7321 3.34626L12.7209 0.00521627L16 3.76881L12.1321 10.2408V16H0V5.20448H5.70012L8.28958 0ZM5.65258 5.30002H0.094782V15.9045H12.0373V10.3994L8.79204 15.8296L6.84825 12.8908L5.04872 15.6831L0.302501 9.43273L2.62786 6.00153L4.33087 7.95649L5.65258 5.30002ZM12.0373 10.3069L8.79001 15.7405L6.84774 12.8039L5.04555 15.6004L0.360972 9.43114L2.63254 6.07931L4.34168 8.0413L5.7056 5.30002H6.14741L4.43106 8.7393L2.58281 6.73305L0.829343 9.40805L4.92866 14.9252L6.8243 12.083L8.71994 14.9252L12.0373 9.50766V10.3069ZM12.1321 10.1483L15.9415 3.77409L12.7281 0.0859086L10.7361 3.43236L8.29726 0.0911245L5.75313 5.20448H6.19509L8.3882 0.809847L10.5919 3.81922L9.81792 5.20448H10.2345L12.8667 0.809847L15.5205 3.81922L12.1321 9.35287V10.1483ZM10.1772 5.30002H9.76454L8.05647 8.35716L8.24603 8.52434L10.1772 5.30002Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.8906 14.9422C11.0285 15.0011 11.1178 15.1359 11.1179 15.2857L11.2317 15.2856C11.2315 15.1232 11.151 14.9743 11.0205 14.8847C11.1403 14.8636 11.2317 14.7589 11.2317 14.6333C11.2317 14.4926 11.1169 14.3781 10.9758 14.3781H10.7198C10.6884 14.3781 10.663 14.4035 10.663 14.4348V15.2856H10.7767V14.8936L10.8906 14.9422ZM10.9758 14.7751H10.7767V14.4915H10.9758C11.0542 14.4915 11.1179 14.5551 11.1179 14.6333C11.1179 14.7116 11.0542 14.7751 10.9758 14.7751Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.1891 14.8558C10.1891 15.2509 10.508 15.5723 10.8999 15.5723C11.2919 15.5723 11.6108 15.2509 11.6108 14.8558C11.6108 14.4607 11.2919 14.1393 10.8999 14.1393C10.508 14.1393 10.1891 14.4607 10.1891 14.8558ZM10.2779 14.8558C10.2779 14.5101 10.5569 14.2288 10.8999 14.2288C11.2429 14.2288 11.5219 14.5101 11.5219 14.8558C11.5219 15.2015 11.2429 15.4827 10.8999 15.4827C10.5569 15.4827 10.2779 15.2015 10.2779 14.8558Z" fill="black"/></svg> templates also count [events according to the international media standards](https://yandex.com/support/adfox/en/statistics/reports/metrics.md#ims) (provided that the account has at least one ad campaign with the **Impression (IMS)**, **Viewable Impression (IMS)**, or **Viewable impression, Yandex (IMS)** [method](https://yandex.com/support/adfox/en/campaigns/impressions-method.md)).

{% endnote %}

[Targeting](https://yandex.com/support/adfox/en/targeting/index.md) isn't taken into account for events. If you take an event link from a banner, the number of events is counted regardless of your targeting parameters.

## View events {#see-events}

To view all events related to a banner:

1. In the main menu, open the **Campaigns** tab, click **Banners**, and select the banner you need.
1. Go to the **Reports** tab and select **Main** → **By events**.
1. Click **Build a report** to see the event report.

## Set up events in your own template {#template}

To set up events in a banner, [create a template](../ad-inventory/settings/template#add-custom-template) for the desired banner type containing macros of the `%event1%` type.

The maximum number of events in the banner is 30.

## Flexible event accounting {#events-count}

{% note info %}
    
By default, the system counts all events associated with a specific banner. The statistics are displayed in tags and event reports.
    
{% endnote %}

Some banners may require protection against fake engagement: for example, if the banner behaves incorrectly under certain conditions or if events are triggered intentionally.

To limit event accounting:

1. Log in to Adfox with the administrator's [account](https://yandex.com/support/adfox/en/settings/users/index.md). Go to **Settings** → **Banner types** or enter a banner type in the search bar.
    
1. Select the banner type and go to the **Templates** tab.
    
1. In the **Session limit** field, enter the maximum number of events that can be counted for a specific event of a single banner (sent to the user's page) within 30 minutes.


> For example, 5 No. 1 events came from the banner loaded to the page within 30 minutes. In the template for this banner, the limit was set to 4. In this case, the fifth event over the session limit is ignored. It isn't counted in the tags and event reports.


<!-- source: en/_includes/feedback.md -->
## Contact support


<a href="en/form"> <!--ссылка, куда ведет кнопка. Если внутренняя ссылка, пишем без .md и .html --> 
  <span class="button">Send an email</span> <!--текст на кнопке--> 
</a>



<!-- source: en/_includes/styles/button.md -->

<!-- endsource: en/_includes/styles/button.md -->
<!-- endsource: en/_includes/feedback.md -->


