Dispatch
This section describes how the dispatch process works with a Google Analytics 4 property as a destination.
#
Event mappingDuring the dispatch process, visit activity captured by the Uniform tracker is converted into non-interaction events. This section details the properties set on these events.
#
Page viewsDimension | Value |
---|---|
event_category | Sitecore Page View |
event_data | A pipe-separated combination of:
|
#
Page eventsDimension | Value |
---|---|
event_category | Sitecore Event |
event_data | A pipe-separated combination of:
|
#
GoalsDimension | Value |
---|---|
event_category | Sitecore Goal |
event_data | A pipe-separated combination of:
|
#
PersonalizationDimension | Value |
---|---|
event_category | Uniform Personalization |
event_data | A pipe-separated combination of:
|
#
Visitor data mappingVisitor data is mapped from Uniform to Google Analytics using custom dimensions. This mapping is configured using the following Sitecore templates:
- Contact Property Mapping - Associates a visitor property collected by the Uniform tracker with a specific custom dimension defined in Google Analytics.
- Profile Pattern Mapping - Associates the pattern from a specific Sitecore profile that a visitor matches with a specific custom dimension defined in Google Analytics. By default, the pattern name is used as the value for the custom dimension.
- Custom Dimension Mappings Folder - Collection of individual mapping items that are used during the dispatch process.
- Tracking Configuration - Item that creates a relationship between the following objects:
- Sitecore sites
- Google Analytics properties
- Custom dimension mappings folder
#
Data shape for dispatchIf you need to implement the OnBeforeDispatchDataHandler
,
the following defines the shape of the data that you transform.
info
Custom dimensions are included in eventParams
.
info
In order for the dispatch process to work properly, you must return an object with this shape.
{ "type":"ga4", "data":{ "eventName":"uniform_event", "eventParams":{ "event_category":"Sitecore Page View", "event_data":"bdb0d562-cbcb-4e69-b363-81d2694fb50c|Home" } }}