contentstack · Schema

TrackEvent

A single event to be tracked for the user.

Properties

Name Type Description
eventKey string The key of the event to track. Use "impression" for automatic view tracking or a custom event key defined in the Personalize Management API.
experience_uid string The UID of the experience associated with this event. Required for impression events.
variant_uid string The UID of the variant shown to the user. Required for impression events.
View JSON Schema on GitHub

JSON Schema

contentstack-trackevent-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TrackEvent",
  "title": "TrackEvent",
  "type": "object",
  "description": "A single event to be tracked for the user.",
  "required": [
    "eventKey"
  ],
  "properties": {
    "eventKey": {
      "type": "string",
      "description": "The key of the event to track. Use \"impression\" for automatic view tracking or a custom event key defined in the Personalize Management API."
    },
    "experience_uid": {
      "type": "string",
      "description": "The UID of the experience associated with this event. Required for impression events."
    },
    "variant_uid": {
      "type": "string",
      "description": "The UID of the variant shown to the user. Required for impression events."
    }
  }
}