1. Interactions

Interaction properties

Version:

Format in Sitecore 8.x

In Sitecore 8.x, information about an interaction is stored in an interaction document.

The following is an example of an interaction document:

{
    "_id" : NUUID("e6e71462-a5a6-4348-b4b5-22d4763462d1"),
    "_t" : "VisitData",
    "ContactId" : NUUID("d18a31d2-2144-4cfb-b460-c24b68e236fb"),
    "StartDateTime" : ISODate("2018-01-01T10:`00:00`.000Z"),
    "EndDateTime" : ISODate("2018-01-01T10:`10:00`.000Z"),
    "ChannelId" : NUUID("61634ec6-57ed-44e1-9cb4-5f43abd1d5fd"),
    "CampaignId" : NUUID("484e735f-371a-40cc-87fa-8f6d047dcf80"),
    "EngagementValue" : 1,
    "DeviceId" : NUUID("d9990609-6943-4a57-b2c2-400e0f3beded"),
    "UserAgent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36",
}

Format in Sitecore 9

In Sitecore 9, interaction data is stored directly on the interaction:

Sitecore.XConnect.Interaction

Mapping details

Mapping definitionMongoDB to xConnect Interaction Mappings > MongoDB Interaction to Interaction Model
Value to write to target objectProperty on target object
CampaignId from source objectCampaignId
ChannelId from source objectChannelId
DeviceId from source objectDeviceProfile
EndDateTime from source objectEndDateTime
EngagementValue from source objectEngagementValue
StartDateTime from source objectStartDateTime
UserAgent from source objectUserAgent
If you have suggestions for improving this article, let us know!