Registers a callback function that listens for action events on your site.
Call this method to capture tracking events, such as page views, cart actions, and purchases. The callback function receives every event sent to external analytics tools using trackEvent(), including both standard and custom events.
To learn about available events and how to handle them, see About Analytics Events.
eventHandler(eventData: WixAnalyticsEventData, eventName: string): void Callback function invoked when an analytics event is tracked. See event names and their corresponding data.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.