Customize the IBM Digital Analytics event listener

We can use the jQuery object-oriented programming infrastructure to add custom business logic to the existing event listeners for . To continue to use IBM Digital Analytics as an analytics provider, but implement and listen for a new type of event, we can create a jQuery object that extends from wc.analytics.CoremetricsEventListener.


Example

Similarly, we can implement an entirely new listener for another analytics provider. In this case, extend the base wc.analytics.GenericEventListener object, and implement each event handler method.

If extra data is needed for these new events, we might need to update the corresponding view JSP files. See Sending additional data to IBM Digital Analytics.


Related reference
Sending additional data to IBM Digital Analytics for a IBM Digital Analytics event
Collecting analytics data about page interactions