Skip to content

Event Schema ​

The event schema defines the structure and properties of your analytics events.

Configuration ​

Event ​

FieldTypeRequiredDescription
namestringyesEvent name
descriptionstringnoEvent context description
dimensionsstring[] or { included: string[], excluded: string[] }noEvent dimension associations
passthroughbooleannoAllow arbitrary properties
propertiesProperty[]noEvent properties

Example ​

yaml
events:
  page_view:
    name: Page View
    description: Triggered when a user views a page.
    properties:
      - name: Page Name
        description: The name of the page that was viewed.
        type: string

  add_user:
    name: Add User
    description: Triggered when an admin adds a user to their team.
    properties:
      - name: Role
        description: The role of the user that was added.
        type: [admin, member]