Customizing the IBM Digital Analytics event listener

You can use the Dojo object-oriented programming infrastructure to add custom business logic to the existing event listeners for IBM Digital Analytics, formerly known as Coremetrics Analytics. 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 Dojo object that extends from wc.analytics.CoremetricsEventListener.

Example


dojo.declare("com.example.custom.NewEventListener",
   wc.analytics.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.