The Adobe Experience Platform Web SDK collects a number of pieces of information automatically without any special configuration. However, this information can be disabled if needed using the context
option in the configure
command. See Configuring the SDK. Below is a list of those pieces of information. The name in parentheses indicates the string to use when configuring the context.
device
)Information about the device. This does not include data that can be looked up server-side from the user agent string.
Path in Payload: | Example: |
---|---|
events[].xdm.device.screenHeight |
900 |
The height of the screen (in pixels).
Path in Payload: | Possible Values: |
---|---|
events[].xdm.device.screenOrientation |
landscape or portrait |
The orientation of the screen.
Path in Payload: | Example: |
---|---|
events[].xdm.device.screenWidth |
1440 |
The width of the screen (in pixels).
environment
)Details about the browser environment.
Browser
Path in Payload: | Example: |
---|---|
events[].xdm.environment.type |
browser |
The type of environment through which the experience surfaced. Adobe Experience Platform Web SDK always sets this to browser
.
Path in Payload: | Example: |
---|---|
events[].xdm.environment.browserDetails.viewportHeight |
679 |
The height of the browser’s content area (in pixels).
Path in Payload: | Example: |
---|---|
events[].xdm.environment.browserDetails.viewportWidth |
642 |
The width of the browser’s content area (in pixels).
Information about the SDK used to collect the event.
Path in Payload: | Example: |
---|---|
events[].xdm.implementationDetails.name |
https://ns.adobe.com/experience/alloy |
The software development kit (SDK) identifier. This field uses a URI to improve uniqueness among identifiers provided by different software libraries. When the standalone library is used, the value is https://ns.adobe.com/experience/alloy
. When the library is used as part of the tag extension, the value is https://ns.adobe.com/experience/alloy+reactor
.
Path in Payload: | Example: |
---|---|
events[].xdm.implementationDetails.version |
0.11.0 |
When the standalone library is used, the value is simply the library version. When the library is used as part of the tag extension, this is the library version and the tag extension version joined with a “+”. For example, if the library version were 2.1.0, and the tag extension version were 2.1.3, the value would be 2.1.0+2.1.3
.
Path in Payload: | Example: |
---|---|
events[].xdm.implementationDetails.environment |
browser |
The environment where the data was collected. This is always set to browser
.
placeContext
)Information about the location of the end user.
Path in Payload: | Example: |
---|---|
events[].xdm.placeContext.localTime |
2019-08-07T15:47:17.129-07:00 |
Local timestamp for the end user in simplified extended ISO format ISO 8601.
Path in Payload: | Example: |
---|---|
events[].xdm.placeContext.localTimezoneOffset |
360 |
Number of minutes the user is offset from GMT.
Path in Payload: | Example: |
---|---|
events[].xdm.timestamp |
2019-08-07T22:47:17.129Z |
The timestamp of the event. This part of context cannot be removed.
UTC timestamp for the end user in simplified extended ISO format ISO 8601.
web
)Details about the page the user is on.
Path in Payload: | Example: |
---|---|
events[].xdm.web.webPageDetails.URL |
https://somesite.com/somepage.html |
The URL of the current page.
Path in Payload: | Example: |
---|---|
events[].xdm.web.webReferrer.URL |
http://somereferrer.com/linkedpage.html |
The URL of the previous page visited.