# Event types

**Event types** are automatically created in your schema when you create an event trigger.

An **event trigger** is a special kind of flag that has a **Void** return type — it doesn't return a value, but can be called like any other flag, to log an event.

By default, new event types contain:

* A `context` field with the `Context` type, so they can capture the top-level `context` passed to the SDK.
* A `properties` field with an automatically created type, e.g. `PageViewEventProperties`. By default, the type is empty, but you can add event-specific properties here, e.g. `href`. You can then pass `properties` as an argument when calling the event trigger from your code.

This setup enables you to log events with both the top-level context you pass to the SDK and extra event-specific properties, with full end-to-end type safety based on your schema.

See the [analytics guide](/analytics/guide.md) for more details on logging events.


---

# 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.hypertune.com/concepts/event-types.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.
