Customizing the IBM Digital Analytics event listener

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

Example

NewEventListener = $.extend(CoremetricsEventListener, {
      .
      .
      .
      business logic
      .
      .
      .
   }
)

Similarly, you 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, you might need to update the corresponding view JSP files. For more information, see Sending additional data to IBM Digital Analytics.