Sort Items

Reports that the user changed the sorting of a product list

❗️

This event is currently available for script implementation only

Parameters

  • name: Human-readable name, not used to identify an event type
  • properties: A container for the event properties as specified in the following table:
PropertyDescriptionType
dyTypeMust be "sort-items-v1"String
sortBySorting parameter, such as price, age, popularity, rating, or any other you allow.String
sortOrderASC or DESCString

Example: Implementation via script

DY.API("event", {
  name: "Sort Items",
  properties: {
    dyType: "sort-items-v1",
    sortBy: "PRICE",
    sortOrder: "ASC"
  }
});

👍

Go to the API reference for the Events endpoint to learn more.