Send session data to Sitecore CDP
Provides the required attributes and a JSON example of how to send session data within a VIEW
event to Sitecore CDP (Data model 2.0).
You can capture session data in an event that is triggered in the session, for example, a VIEW
event or an ADD
event. To pass session data in a custom-made deep link, place the deep link in the object.
To send session data within a VIEW
event, use the following attributes:
Attribute | Description | Type | Example(s) | Required/optional |
---|---|---|---|---|
| JSON Object An object of arbitrary session data. | JSON object | N/A | Required |
| One or many name/value pair attributes for custom session data. | Supported types for the value; string: "hello", boolean: true or false, integer: 9, number: 99.9 |
| Optional |
The following JSON example demonstrates how to send session data:
{ "channel":"WEB", "type":"VIEW", "language":"EN", "currency":"EUR", "page":"home page", "pos":"spinair.com", "browser_id":"56860bff-94ba-4d84-aa37-2b5a83d5411b", "session_data":{ "deep_link":"https://www.spinair.com/search?origin=DUB&destination=LHR", "is_logged_in":true, "assistance":false } }