# Custom events

**PushExpress -- Custom events**

* [Creating custom events](#creating-custom-events)
* [Sending an event to the PushExpress](#sending-an-event-to-the-PushExpress)
* [Events in the task settings](#events-in-the-task-settings)
* [Event analytics](#event-analytics)
* [Second, third and subsequent deposits](#second-third-and-subsequent-deposits)

### Creating custom events

[Create an event using the API.](https://docs.push.express/api/custom-events#create-an-custom-events)

### Sending an event to the PushExpress

[Go to the Segments section.](https://app.push.express/postbacks/offers/)

> Get an overview of all your events and segments.

<div align="center"><img src="https://4196027459-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEXhSGyb0mYOQ2RZvkDaH%2Fuploads%2Fgit-blob-4630486af044a98d5f7c12398840a56abf082a42%2Fsegments_page.png?alt=media" alt="" width="800"></div>

<sup>*Segments page*</sup>

> The "URL for sending postback" column will contain the url for the GET request to add an event to the device. Replace {your installation id} with the ID of the device where the event occurred.

<div align="center"><img src="https://4196027459-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEXhSGyb0mYOQ2RZvkDaH%2Fuploads%2Fgit-blob-0532daf8d15f1d24c375b866e047b95a83b040c3%2Fsegments_page_2.png?alt=media" alt="" width="800"></div>

<sup>*URL for sending postback*</sup>

### Events in the task settings

After creating the event, it will become available in the settings of all types of tasks. The Registration and Deposit system events cannot be changed. Custom events will be displayed in the task filters "What event have occurred" and "What event have NOT occurred" after system events.

<div align="center"><img src="https://4196027459-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEXhSGyb0mYOQ2RZvkDaH%2Fuploads%2Fgit-blob-40e4b2b954865eb39b8188fc16c94e4c8b214fef%2Ftask_settings_happened.png?alt=media" alt="" width="800"></div>

<div align="center"><img src="https://4196027459-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEXhSGyb0mYOQ2RZvkDaH%2Fuploads%2Fgit-blob-d079b217d509d0a855902713304670f7d2e61c8b%2Ftask_settings_not_happened.png?alt=media" alt="" width="800"></div>

<sup>*Adding an event to a task*</sup>

### Event analytics

You can see the total number of devices on which the event occurred in the [Segments section](https://app.push.express/postbacks/offers/) -> Custom events

<div align="center"><img src="https://4196027459-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEXhSGyb0mYOQ2RZvkDaH%2Fuploads%2Fgit-blob-67ad7803a80e2a8eee468d982db7b7f7d2e3ffdf%2Fsegment_custom_events.png?alt=media" alt="" width="800"></div>

### Second, third and subsequent deposits

The service automatically tracks each deposit made on a device. For every new deposit, the system records an event with its sequential number (first, second, third, etc.) The total count of devices containing these events is available in the [Segments section](https://app.push.express/postbacks/offers/) -> System events

<div align="center"><img src="https://4196027459-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEXhSGyb0mYOQ2RZvkDaH%2Fuploads%2Fgit-blob-35aad699f5cda564c955f154f3fdafd79bb4e82b%2Fsegment_system_events.png?alt=media" alt="" width="800"></div>

You may define task conditions by utilizing these events.

<div align="center"><img src="https://4196027459-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEXhSGyb0mYOQ2RZvkDaH%2Fuploads%2Fgit-blob-a10d1498f49fc0b4564bc973d209f0aeb2ed4518%2Fsecond_deposit.png?alt=media" alt="" width="800"></div>
