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.

  1. Log in to experience.adobe.com using your Adobe ID credentials.
  2. Navigate to Data Collection > Tags.
  3. Select the desired tag property.
  4. Navigate to Rules, then select the desired rule.
  5. Under Actions, select an existing action or create an action.
  6. Set the Extension dropdown field to Adobe Experience Platform Web SDK, and set the Action Type to Send event.
  7. Use the dropdown under the Type field, or enter your own value.
  8. 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