Skip to Content
User Interaction EventsBase Event Structure

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 } }

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 event
Required
pageTitleStringThe title of the page where the event occurred
Required
hostNameStringThe hostname of the page where the event occurred
Required
pathNameStringThe path of the page where the event occurred
Required
queryStringStringThe query string of the page where the event occurred
Required
urlStringThe URL of the page where the event occurred
Required
referrerStringThe URL that linked to the page where the event occurred
Required
languagesArrayThe languages of the browser that made the request
Required
userAgentStringThe user agent of the browser that made the request
Required

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 occurred
Required
siteNameStringThe name of the hub where the event occurred
Required
userIdString (GUID)The ID of the user that performed the action
Required
contactIdString (GUID)The ID of the contact that performed the action
Required

Card Events

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

Survey Events

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