Base Event Structure

At a high level, all Komo Events are structured as follows:

{
  "eventName": "page-view", // the event name
  "eventData": {
    // ... the event payload
  },
  "extensionData": {
    // ... the optional extension data
  },
  "trackedData": {
    // ... the optional admin-defined contact properties
  }
}

Base Event Payload Data

All Komo Event eventData payloads include the following fields, providing context about the webpage, host, and browser.

NameTypeDescriptionRequired
timestampString (TimeStamp)The timestamp of the eventRequired
pageTitleStringThe title of the page where the event occurredRequired
hostNameStringThe hostname of the page where the event occurredRequired
pathNameStringThe path of the page where the event occurredRequired
queryStringStringThe query string of the page where the event occurredRequired
urlStringThe URL of the page where the event occurredRequired
referrerStringThe URL that linked to the page where the event occurredRequired
languagesArrayThe languages of the browser that made the requestRequired
userAgentStringThe user agent of the browser that made the requestRequired

Standard Event Fields

Depending on the Event category, the following fields are always included.

Hub Events

  • All events raised on hub pages (including individual cards and embedded card pages) and surveys will include these fields.
  • Coupon events do not include these fields.
NameTypeDescriptionRequired
siteIdString (GUID)The ID of the hub where the event occurredRequired
siteNameStringThe name of the hub where the event occurredRequired
userIdString (GUID)The ID of the user that performed the actionRequired
contactIdString (GUID)The ID of the contact that performed the actionRequired

Card Events

  • All events raised from cards will include these fields.
NameTypeDescriptionRequired
siteIdString (GUID)The ID of the hub where the event occurredRequired
siteNameStringThe name of the hub where the event occurredRequired
userIdString (GUID)The ID of the user that performed the actionRequired
contactIdString (GUID)The ID of the contact that performed the actionRequired
pageIdString (GUID)The ID of the page where the event occurredOptional
pageSlugStringThe slug of the page where the event occurredOptional
cardIdString (GUID)The ID of the cardRequired
cardTypeStringThe type of the cardRequired
cardSubTypeStringThe sub-type of the cardRequired
cardNameStringThe name of the cardRequired

Survey Events

  • All events raised from surveys will include these fields.
NameTypeDescriptionRequired
siteIdString (GUID)The ID of the hub where the event occurredRequired
siteNameStringThe name of the hub where the event occurredRequired
userIdString (GUID)The ID of the user that performed the actionRequired
contactIdString (GUID)The ID of the contact that performed the actionRequired
surveyIdString (GUID)The ID of the survey that the form field is onRequired
surveyNameStringThe name of the survey that the form field is onRequired
recipientIdString (GUID)The ID of the survey recipient that touched the form fieldRequired

Tracked Data

  • Events may optionally include trackedData containing admin-defined contact properties.
  • These properties are configured by site administrators and automatically resolved from user data when events are emitted.
  • This data is used for analytics tracking in systems like GTM and Adobe Launch.
  • For detailed information, see Tracked Data (Advanced).