Oracle WebCenter Analytics Development Guide

     Previous Next  Open TOC in new window   View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Raising Analytics Events from a Custom Application

After you have defined your events in Analytics Administration, you can use OpenUsage to raise events in response to user actions.

This example is a sample application implemented as a portlet. The portlet is a JSP page that displays two static links and a text box with a submit button ("Go to My Demo Page!"). At the bottom of the portlet, there are two radio buttons and another submit button ("View Events!"). Each link in the portlet uses a different approach to raise an event.

You could also use a text box/submit button in the portlet and use the OpenUsage API to raise an event. The form would include a hidden input element that triggers a Java servlet to raise the event. The code used by the servlet to raise the event would be identical to the code above except it would take in the page name entered in the text box and store this value in the page name dimension table.

The next step is to configure Analytics to store events from your custom application.


  Back to Top      Previous Next