Custom event with no custom data
Version:
In Sitecore 8.x, page events have a number of standard properties available to store data. These include:
- Data
- DataKey
- Name
- Text
This section is appropriate if the custom event you are mapping to in Sitecore 9 does not have any additional properties to consider.
Consider an example where, in Sitecore 8.x, you captured a page event when the visitor views a page that displays the status of his membership in a customer loyalty program.
In MongoDB, the page event looks like the following:
In Sitecore 9, you created the following custom event to represent this data:
You want to implement the following mapping:
| Sitecore 8.x property | Sitecore 9 property |
|---|---|
DateTime | Timestamp |
PageEventDefinitionId | DefinitionId |
Text | Text |
Value | EngagementValue |
If you have suggestions for improving this article, let us know!