1. Commerce Connect Developer Reference

Page events, goals, outcomes, and custom analytics data

Version:

Connect generates page events, goals, and outcomes at key points when running a storefront and the API is called. For example: cart manipulation page events that record contact cart activities, visitor order creation goals and outcomes, site language selection, searches, selected sort orders, and so on. Many of the visitor activities are recorded as they navigate the website.

The recorded activities are then used to feed the Experience Profile Commerce reports as well as the Experience Analytics Commerce dimensions, which are used to report on. While Sitecore provides a lot of important information around the visitor interactions, Connect extends it with additional events, goals, and outcomes, and augments the recorded data with its own custom values adding Connect state information to the visitor interactions.

This is where the custom Analytics Data and Outcome Data classes are used. Each of these classes provides an abstraction and a mechanism to serialize data into Sitecore interactions and a means to rehydrate the serialized values. This is currently used for reporting purposes but can be customized and used in different kinds of scenarios for searching and filtering when segmenting contacts and personalizing content.

Note

The classes provide an abstraction and a strongly typed interface to the analytics data collected in Connect and it is best practice to use them to access the data. It is not considered best practice to access the data directly in custom values because Sitecore might change the implementation of what and how the data is persisted and retrieved. The result of directly accessing the data in custom values is undefined.

You can find the Analytics Data and Outcome Data classes in the Sitecore.Commerce.AnalyticsData and Sitecore.Commerce.OutcomeData namespaces of the Connect framework.

Note

Sitecore Commerce Connect does not support GraphQL requests.

The Commerce Connect services rely on tracked analytics data, such as interactions or contacts. Analytics tracking for GraphQL requests is disabled by default in Sitecore as it can have negative effect on performance.

If you have suggestions for improving this article, let us know!