eventType
The eventType
property allows you to define the type of event you send using the Web SDK. This field ultimately populates the xdm.eventType
field. It is valuable when you want to differentiate the event types that you send to Adobe.
Adobe provides some predefined event types that you can use. See Available values for eventType
in the XDM user guide for a full list of predefined values. You can also use your own values if preferred.
If you set both type
here and xdm.eventType
in the xdm
object, the value in this field takes priority.
Set the Type dropdown field within the actions of a tag rule.
Set the eventType
string property when running the sendEvent
command.
alloy("sendEvent", {
"xdm": adobeDataLayer.getState(reference),
"type": "commerce.purchases"
});