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.
Configure event type using the Web SDK tag extension
Set the Type dropdown field within the actions of a tag rule.
- Log in to experience.adobe.com using your Adobe ID credentials.
- Navigate to Data Collection > Tags.
- Select the desired tag property.
- Navigate to Rules, then select the desired rule.
- Under Actions, select an existing action or create an action.
- Set the Extension dropdown field to Adobe Experience Platform Web SDK, and set the Action Type to Send event.
- Use the dropdown under the Type field, or enter your own value.
- Click Keep Changes, then run your publishing workflow.
Configure event type using the Web SDK JavaScript library
Set the eventType
string property when running the sendEvent
command.
alloy("sendEvent", {
"xdm": adobeDataLayer.getState(reference),
"type": "commerce.purchases"
});
recommendation-more-help
ad108910-6329-42f1-aa1d-5920a2b13636