---
title: "Web visit facet"
slug: "web-visit-facet"
abstract: "Guide to how information about web visits are mapped from Sitecore 8.x to 9 in xDB Migration Tool."
---
# Web visit facet

<details>
<summary><h2>Format in Sitecore 8.x</h2></summary>

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:

```csharp
"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",
```

</details>

<details>
<summary><h2>Format in Sitecore 9</h2></summary>

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

|     |     |
| --- | --- |
| Facet Name | `WebVisit` |
| Facet Type | `Sitecore.XConnect.Collection.Model.WebVisit` |

</details>

<details>
<summary><h2>Mapping facet properties</h2></summary>

|     |     |
| --- | --- |
| Mapping definition | MongoDB to xConnect Interaction Mappings > MongoDB Interaction to xConnect Interaction WebVisit Facet |

| Value to write to target object | Property on target object |
| --- | --- |
| `Language` from source object | `Language` |
| `Referrer` from source object | `Referrer` |
| `SiteName` from source object | `SiteName` |

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

| Facet Property | Description |
| --- | --- |
| `Browser` | see Mapping Browser Data Properties |
| `OperatingSystem` | see Mapping Operating System Data Properties |
| `Screen` | see Mapping Screen Data Properties |

</details>

<details>
<summary><h2>Mapping Browser Data Properties</h2></summary>

|     |     |
| --- | --- |
| Source object | The field located at `Browser` on the interaction document |
| Target object | `Sitecore.XConnect.Collection.Model.BrowserData` |
| Mapping definition | MongoDB to xConnect Interaction Mappings > MongoDB Interaction to xConnect Browser Data |

| Value to write to target object | Property on target object |
| --- | --- |
| `Browser.BrowserVersion` from source object | `BrowserVersion` |
| `Browser.BrowserMajorName` from source object | `BrowserMajorName` |
| `Browser.BrowserMinorName` from source object | `BrowserMinorName` |

</details>

<details>
<summary><h2>Mapping operating system data properties</h2></summary>

|     |     |
| --- | --- |
| Source object | The field located at `OperatingSystem` on the interaction document |
| Target object | `Sitecore.XConnect.Collection.Model.OperatingSystemData` |
| Mapping definition | MongoDB to xConnect Interaction Mappings > MongoDB Interaction to xConnect Operating System Data |

| Value to write to target object | Property on target object |
| --- | --- |
| `OperatingSystem._id` from source object | `Name` |
| `OperatingSystem.MajorVersion` from source object | `MajorVersion` |
| `OperatingSystem.MinorVersion` from source object | `MinorVersion` |

</details>

<details>
<summary><h2>Mapping screen data properties</h2></summary>

|     |     |
| --- | --- |
| Source object | The field located at `Screen` on the interaction document |
| Target object | `Sitecore.XConnect.Collection.Model.ScreenData` |
| Mapping definition | MongoDB to xConnect Interaction Mappings > MongoDB Interaction to xConnect Screen Data |

| Value to write to target object | Property on target object |
| --- | --- |
| `Screen.ScreenHeight` from source object | `ScreenHeight` |
| `Screen.ScreenWidth` from source object | `ScreenWidth` |

</details>