I want to create a batch segment in CDP based on a custom event value aggregated from all page visits.
For example, each user gets a number of points for visiting a specific page and these points are saved in CDP as a part of the event extension object:
const eventData = {
channel: "WEB",
currency: "EUR",
pointOfSale: "TestPOS",
language: "EN",
page: "home"
};
const extensionData = {
customKey: 10
};
await engage.pageView(eventData, extensionData);
Now I need to configure a batch segment that will include website visitors with a total sum of points from all events and sessions greater than 100.
How can this scenario be achieved in Sitecore CDP?