# Event Counter

## Event Counter Configure

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FeUGcqiHAYzQK3SqHpdYS%2Fimage.png?alt=media&#x26;token=03a3ee00-dcad-4772-b791-e9eae473126e" alt=""><figcaption></figcaption></figure>

### General Information

* **Object:** the corresponding Object that you chose to create the attribute
* **Group attribute:** Group contains attributes that have the same characteristic or usage. [See more about Groups](https://docs.antsomi.com/cdp-365-user-guide-en/data-hub/business-objects/data-objects/groups)
* **Attribute type:** [type of attribute](#kieu-thuoc-tinh) you chose to create
* **Attribute name:** name of the attribute
* **Attribute internal code:** code of the attribute
* **Description:** information describes the attribute

{% hint style="warning" %}
Note: the attribute code does not allow prefixes: number\_, sgmt\_, aud\_&#x20;
{% endhint %}

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2Fuqs9bUKH7Ft6wLUvlM3S%2Fimage.png?alt=media&#x26;token=fa70aa1c-9a41-4304-9a2e-421b9ad4193d" alt=""><figcaption></figcaption></figure>

### Setting

* **Time range**: time range that this attribute is computed
* **Events:** the event will be counted
* **Sources**: sources that event is logged
* **Add condition**: Condition that the event counter attribute is computed. See more about [Conditions](https://docs.antsomi.com/cdp-365-user-guide-en/annotation/conditions)
* **Display Format**: the displayed value of the attribute. See more about [Display Format](https://docs.antsomi.com/cdp-365-user-guide-en/annotation/data-format#display-format)
* **Attribute usage setting**:
  * **Enable Data Encryption**: mark data encoding for this attribute

{% hint style="warning" %}
Note:&#x20;

* The display format is corresponding with the selected event and event attribute
* You can edit the display format by clicking ![](https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2F1ZxFd46BF0CQpGnkGPiw%2Fimage.png?alt=media\&token=b5252af9-f433-4e68-a0b1-70129afba00d)in the Display format field when the data type is Number or Date time
  {% endhint %}

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FsjSyw0cdpPw15wFU3U6O%2Fimage.png?alt=media&#x26;token=3bf7dee2-23a0-405c-bbe3-8fba0e8003f1" alt=""><figcaption></figcaption></figure>

### Computation schedule

The schedule that the attribute is computed

See more about the [Computation Schedule](https://docs.antsomi.com/cdp-365-user-guide-en/data-hub/business-objects/data-objects/attributes/computed-attribute/broken-reference)

### Notification Setup

* **Account**: set up account(s) receiving notification&#x20;
* **Notify options**: the notification can be sent by email or pushed notification when the computation completes success or fail

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FdV5ujHNWYwBCcssOPRv5%2Fimage.png?alt=media&#x26;token=1dcb0842-b8f5-4262-9369-d7c0e331ed78" alt=""><figcaption></figcaption></figure>

***For example***, you can create an attribute to count event page views. Moreover, you can choose more conditions like page URL or other options by using ![](https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FWowFNlrkpqufmQAAKLER%2Fimage.png?alt=media\&token=235a7937-20d5-454b-826c-1c0c799a4f2d)

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FJTOGmAAkEcl3ItrghJ6q%2Fimage.png?alt=media&#x26;token=efdc6bc7-a535-4ac8-96fc-0fa4216de4bb" alt=""><figcaption></figcaption></figure>
