Data events let backend code respond when items in a site's collections change. Wix triggers a data event after an item is created, updated, or deleted, and your handler receives the item and details about the change. For example, you can use data events to:
Note: Studio Two doesn't support data hooks, available in Wix Studio and the Classic Editor. Data events are the closest alternative, but they only partially cover the same use cases.
Only user-created collections trigger data events. Wix app collections, such as those that Wix Stores adds, and collections from an external database never trigger data events. To respond to changes in a business solution's data, handle that solution's own events in a Backend Events extension, such as the Wix eCommerce Order Created event.
In a user-created collection, changes trigger events whether they come from site code or from an edit in the CMS dashboard.
A handler receives the events for all user-created collections on the site. To respond to changes in one collection only, check event.entity.dataCollectionId in the handler.
The items module of the Data API includes these events:
To handle an event, register a handler with the event's method, such as items.onDataItemCreated(), in a Backend Events extension.
Each handler receives an event object with these properties:
entity: The item that changed, including its _id and dataCollectionId. For Data Item Created and Data Item Updated, it also includes data, the item's field values.metadata: Details about the event, such as eventTime and the event's _id.Data events run after a change is already saved, so they work differently from validation or transformation logic:
metadata._id to spot and ignore duplicate events. To handle updates to the same item in order, compare metadata.entityEventSequence.Last updated: 2 November 2026