Handle event overrides (custom attributes)
Attribute overrides for standard events are supported for the Experience Platform only. Custom data is not forwarded to Commerce dashboards and metrics trackers.
For any event with customContext
, the collector overrides joins fields set in the relevant contexts with fields in customContext
. The use case for overrides is when a developer wants to reuse and extend contexts set by other parts of the page in already supported events.
When overriding custom events, event forwarding to Experience Platform should be turned off for that event type to avoid double counting.
Examples:
Product view with overrides published though Adobe Commerce Events SDK:
mse.publish.productPageView({
productListItems: [
{
productCategories: [
{
categoryID: "cat_15",
categoryName: "summer pants",
categoryPath: "pants/mens/summer",
},
],
},
],
});
In Experience Platform Edge:
{
xdm: {
eventType: 'commerce.productViews',
identityMap: {
ECID: [
{
id: 'ecid1234',
primary: true,
}
]
},
commerce: {
productViews: {
value : 1,
}
},
productListItems: [{
SKU: "1234",
name: "leora summer pants",
productCategories: [{
categoryID: "cat_15",
categoryName: "summer pants",
categoryPath: "pants/mens/summer",
}],
}],
}
}
Overriding events with custom attributes may affect default Adobe Analytics reports.
Previous pageAdd Custom Order Attributes
Next pageUse Adobe Experience Platform Tags