> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Track

> Event payload details and trigger documentation for Track data from Customer Io

<img src="https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/customer_io.svg?fit=max&auto=format&n=EU2WCxuXGIUQcziR&q=85&s=c910616b507232ba0448734924a291f5" alt="images/customer_io.svg" width="40" height="40" data-path="images/customer_io.svg" />

# Events

## Triggering Webhook Types

The following event types are associated with the Track event payload from Customer Io.

* `Customer Io Track`

<RequestExample>
  ```json Example theme={null}
  {
    "anonymous_id": "569a0e86-0484-4a84-afa8-cc55b76fe5c4",
    "event": "button_clicked",
    "message_id": "07cf5c9f-fbb0-4877-bfad-e158d86978ee",
    "properties": {
      "any": "value",
      "you": "can have"
    },
    "timestamp": "2024-03-20T15:30:00Z",
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
    "user_id": "97980cfea0067"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Description theme={null}
  {
    "anonymous_id": "Anonymous identifier for the user",
    "event": "Name of the event being tracked",
    "message_id": "Unique identifier for this message",
    "properties": "Event properties, free-form dictionary of properties of the event",
    "timestamp": "When this track event occurred",
    "user_agent": "User agent string from the client",
    "user_id": "Unique identifier for the user"
  }
  ```
</ResponseExample>

### Payload Field Details

<ResponseField name="Track" type="Event Payload">
  <Expandable title="fields" defaultOpen="true">
    <ResponseField name="user_id" type="string" required>
      Unique identifier for the user

      ```json CEL theme={null}
      user_id
      ```

      ```json Example theme={null}
      "97980cfea0067"
      ```
    </ResponseField>

    <ResponseField name="event" type="string" required>
      Name of the event being tracked

      ```json CEL theme={null}
      event
      ```

      ```json Example theme={null}
      "button_clicked"
      ```
    </ResponseField>

    <ResponseField name="timestamp" type="timing.v1.Timestamp" required>
      When this track event occurred

      ```json CEL theme={null}
      timestamp
      ```

      ```json Example theme={null}
      "2024-03-20T15:30:00Z"
      ```
    </ResponseField>

    <ResponseField name="message_id" type="string" required>
      Unique identifier for this message

      ```json CEL theme={null}
      message_id
      ```

      ```json Example theme={null}
      "07cf5c9f-fbb0-4877-bfad-e158d86978ee"
      ```
    </ResponseField>

    <ResponseField name="properties" type="object" required>
      Event properties, free-form dictionary of properties of the event

      ```json CEL theme={null}
      properties
      ```

      ```json Example theme={null}
      {
      "any": "value",
      "you": "can have"
      }
      ```
    </ResponseField>

    <ResponseField name="anonymous_id" type="string" required>
      Anonymous identifier for the user

      ```json CEL theme={null}
      anonymous_id
      ```

      ```json Example theme={null}
      "569a0e86-0484-4a84-afa8-cc55b76fe5c4"
      ```
    </ResponseField>

    <ResponseField name="user_agent" type="string" required>
      User agent string from the client

      ```json CEL theme={null}
      user_agent
      ```

      ```json Example theme={null}
      "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
      ```
    </ResponseField>
  </Expandable>
</ResponseField>
