1. Events data model

The event object model

The event object is a dictionary of key-value pairs representing data about the event being recorded, the user, the device, and so on.

The following table lists top-level attributes that are required for all Sitecore Discover event objects. Depending on the type of event, there might be other required attributes located within the value object.

NameTypeDescription
typeStringType of the event
nameStringName of the event
valueObjectEvent value object

The following table lists other keys that are only required when you are using the Sitecore Discover Events API:

NameTypeDescription
tIntegerRequired.

Time of the event in milliseconds.
t0IntegerRequired.

Time the page loaded in milliseconds.
uuidStringEither uuid or user_id is required.

Unique Discover-provided user ID
user_idStringEither uuid or user_id is required.

Unique, anonymous user ID

The following table lists optional keys:

NameTypeDescriptionValue
deviceStringOptional.Device type.pcmobiletablet
app_typeStringOptional.Application type.nativewebviewbrowser
If you have suggestions for improving this article, let us know!