1. Interactions

Web visit facet

Version:

Format in Sitecore 8.x

In Sitecore 8.x, information about the web visit represented by the interaction is stored in a variety of places on the interaction.

The following is an example of an interaction with the web visit data:

"Browser" : {
    "BrowserVersion" : "51.0",
    "BrowserMajorName" : "Chrome",
    "BrowserMinorName" : "51.0"
},
"OperatingSystem" : {
    "_id" : "WinNT",
    "MajorVersion" : 6,
    "MinorVersion" : 1
},
"Screen" : {
    "ScreenHeight" : 480,
    "ScreenWidth" : 640
},
"Language" : "en",
"Referrer" : "https://www.sitecore.com/",
"SiteName" : "www",

Format in Sitecore 9

In Sitecore 9, web visit information is associated with an interaction through an interaction facet:

Facet NameWebVisit
Facet TypeSitecore.XConnect.Collection.Model.WebVisit

Mapping facet properties

Mapping definitionMongoDB to xConnect Interaction Mappings > MongoDB Interaction to xConnect Interaction WebVisit Facet
Value to write to target objectProperty on target object
Language from source objectLanguage
Referrer from source objectReferrer
SiteName from source objectSiteName

The following facet properties are objects that require their own mappings:

Facet PropertyDescription
Browsersee Mapping Browser Data Properties
OperatingSystemsee Mapping Operating System Data Properties
Screensee Mapping Screen Data Properties

Mapping Browser Data Properties

Source objectThe field located at Browser on the interaction document
Target objectSitecore.XConnect.Collection.Model.BrowserData
Mapping definitionMongoDB to xConnect Interaction Mappings > MongoDB Interaction to xConnect Browser Data
Value to write to target objectProperty on target object
Browser.BrowserVersion from source objectBrowserVersion
Browser.BrowserMajorName from source objectBrowserMajorName
Browser.BrowserMinorName from source objectBrowserMinorName

Mapping operating system data properties

Source objectThe field located at OperatingSystem on the interaction document
Target objectSitecore.XConnect.Collection.Model.OperatingSystemData
Mapping definitionMongoDB to xConnect Interaction Mappings > MongoDB Interaction to xConnect Operating System Data
Value to write to target objectProperty on target object
OperatingSystem._id from source objectName
OperatingSystem.MajorVersion from source objectMajorVersion
OperatingSystem.MinorVersion from source objectMinorVersion

Mapping screen data properties

Source objectThe field located at Screen on the interaction document
Target objectSitecore.XConnect.Collection.Model.ScreenData
Mapping definitionMongoDB to xConnect Interaction Mappings > MongoDB Interaction to xConnect Screen Data
Value to write to target objectProperty on target object
Screen.ScreenHeight from source objectScreenHeight
Screen.ScreenWidth from source objectScreenWidth
If you have suggestions for improving this article, let us know!