Articles
Enterprise Architecture
Using the AquaLogic Interaction Analytics 2.0 OpenUsage API
Pages:
1,
2,
3,
4,
5
The next step is to register any custom events in Analytics Administration so they will be recognized by the Analytics Collector Service. Portal events are collected automatically. Custom (non-portal) events are called Managed Events in Analytics Administration.
To capture non-numeric data, you must use a dimension table. You can use existing dimension tables or create new ones, called Managed Dimensions in Analytics Administration. After you create a new dimension, you must create a new event parameter of type String, and associate it to the dimension (see Steps 3 to 5 below). To use an existing dimension table, create a parameter of type Integer that maps to the ID column in your dimension table. We recommend that you do not create too many new dimensions, since they slow down the speed of data collection and reporting.
The sample application used in this example displays links in a portlet and tracks which pages are accessed by users. The application also keeps track of which OpenUsage method is used to raise the event. The event model uses one custom event with four parameters, two of which have associated dimension tables. These instructions explain how to register this custom event in Analytics Administration:
Figure 2. Analytics Manager event registration
event method. (Dimension names can be up to 20 characters in length and can only include letters, numbers, spaces, and underscores.) Leave the default table name. If you are expecting a small number of unique values for a dimension, select the "Unique?" checkbox to reduce the size of the table.
page name. Leave the default table name.
demo event with the parameters listed in the table below. Leave the default table name and column names as shown in Figure 3. (Event and parameter names can be up to 14 characters in length and can only include letters, numbers, spaces, and underscores.)
| Name | Data Type | Dimension |
|
page id
|
Integer |
-
|
|
page name
|
String |
page name
|
|
event method
|
String |
event method
|
|
date
|
Date |
-
|
Figure 3. Analytics Manager Create Event editor
Note: The Event Registration page lists the names of the tables created in the Analytics database for the custom event and its dimensions (ASCFACT_* for fact tables and ASCDIM_* for dimension tables). These table names are used to query the database only. The OpenUsage API uses the event or dimension name as defined in the UI (that is, "demo event" not "ASCFACT_DEMO_EVENT").
For details on the other pages in Analytics Administration, see the online help or the Administrator Guide for BEA AquaLogic Interaction Analytics.