Optimizely · Schema

EventInput

An event to send to ODP

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing

Properties

Name Type Description
type string Event type category (e.g., order, product, email, navigation)
action string Specific action within the event type (e.g., purchase, view, open)
identifiers object Customer identifiers associated with the event
data object Additional event data fields
View JSON Schema on GitHub

JSON Schema

optimizely-eventinput-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EventInput",
  "title": "EventInput",
  "type": "object",
  "description": "An event to send to ODP",
  "required": [
    "type",
    "action"
  ],
  "properties": {
    "type": {
      "type": "string",
      "description": "Event type category (e.g., order, product, email, navigation)"
    },
    "action": {
      "type": "string",
      "description": "Specific action within the event type (e.g., purchase, view, open)"
    },
    "identifiers": {
      "type": "object",
      "description": "Customer identifiers associated with the event",
      "additionalProperties": {
        "type": "string"
      }
    },
    "data": {
      "type": "object",
      "description": "Additional event data fields",
      "additionalProperties": true
    }
  }
}