Skip Headers
Oracle® Fusion Middleware WebCenter Sites: Analytics Developer's Guide
11g Release 1 (11.1.1.6.0)

Part Number E39315-01
Go to Documentation Home
Home
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

1 About Creating Reports for Analytics

Part I of this guide is a tutorial with exercises to help you create and configure your own reports for Oracle WebCenter Sites: Analytics.

This chapter outlines the flow of the tutorial and contains the following sections:

1.1 About This Tutorial

The goal of this tutorial is to provide you with an understanding of how to create and configure reports in Oracle WebCenter Sites: Analytics. To achieve this, you will complete the following exercises:

  1. Chapter 2, "Exercise 1: Adding a New Parameter for Data Capture." This exercise walks you through adding a new parameter to Analytics for data capture.

  2. Chapter 3, "Exercise 2: Adding a New Parameter to the DetailDefinition Table." This exercise walks you through configuring Analytics to recognize a new parameter. In this exercise, you will add that parameter to the DETAILDEFINITION table. An Analytics job can process a parameter for display in a report only if the parameter is defined in the DETAILDEFINITION table.

  3. Chapter 4, "Exercise 3: Developing a New Analytics Job." This exercise walks you through developing an Analytics job for a new parameter. The Analytics job you create will process the new parameter for display in a report ("NewBrowsers" report in this tutorial).

  4. Chapter 5, "Exercise 4: Creating and Preparing a Report for Viewing." This exercise walks you through configuring a custom Analytics report. The report will draw statistical data from the Analytics database and contain the following features:

    • A table

    • A time period selector

    • A chart

    • A data filter

Section 1.4, "Quick Reference" outlines the steps you will complete in each exercise.

Note :

Throughout this guide, we assume you are working exclusively with the FirstSite II sample site. Select this site whenever prompted in the Analytics or WebCenter Sites interfaces.

1.2 The 'NewBrowsers' Report

The report you will be creating in this tutorial is called the "NewBrowsers" report.

Note :

Your "NewBrowsers" report is a duplicate of the default "Browsers" report in your Analytics installation. For the purposes of this tutorial, the xml file and report name of the "Browsers" report you will be configuring, along with the bean and mapper class names, have been renamed to avoid overwriting the default "Browsers" report. To avoid overwriting the default report, the names of your custom report, its xml file, and bean and mapper classes are unique and used throughout this tutorial.

For a quick reference of the steps you need to complete in order to successfully add a parameter and create a report, see Section 1.4, "Quick Reference." Once you have completed the exercises in this tutorial, your report should be displayed as shown in Figure 1-1.

Figure 1-1 "New Browsers" Report

Description of Figure 1-1 follows
Description of "Figure 1-1 "New Browsers" Report"

1.3 Prerequisites for Creating Reports with Custom Parameters

Before proceeding through the rest of this document, you should:

1.4 Quick Reference

For your reference, the steps you will follow are outlined below.

Exercise 1: Adding a New Parameter

In Chapter 2, "Exercise 1: Adding a New Parameter for Data Capture" you will add a new parameter to Analytics so Analytics can start capturing data on that parameter. The steps are:

  1. Modify the Analytics image tag and its JSP to trigger data capture for the new parameter, as explained in Section 2.2, "Adding the New Parameter to the Image Tag and Its JSP."

  2. The next step in this tutorial is to add the new parameter to the DETAILDEFINITION table. For instructions, see "Exercise 2: Adding a New Parameter to the DETAILDEFINITON Table."

Exercise 2: Adding a New Parameter to the DETAILDEFINITON Table

In Chapter 3, "Exercise 2: Adding a New Parameter to the DetailDefinition Table" you will configure Analytics to recognize the new parameter by adding that parameter to the DETAILDEFINITION table. The steps are:

  1. Add the new parameter to the DETAILDEFINITION table. This enables Analytics to see the new parameter (created in "Exercise 1: Adding a New Parameter") which, in turn, allows an Analytics job (which you will be creating in "Exercise 3: Developing a New Analytics Job") to process the parameter for display in a report ('NewBrowsers' report in this example).

  2. The next step in this tutorial is to develop a new Analytics job. Before you start the next exercise, browse your FSII site to create data for the new Analytics job (you will be developing) to process. Make sure that your Analytics sensor, Hadoop, and HDFS Agent are running before you proceed to "Exercise 3: Developing a New Analytics Job."

Exercise 3: Developing a New Analytics Job

In Chapter 4, "Exercise 3: Developing a New Analytics Job" you will be developing an Analytics job to process the raw data that the new parameter captures. The steps are:

  1. Develop a new Analytics job. In this example we use the "NewBrowsers" report (which you will create in "Exercise 4: Creating and Configuring a Report"). The new job enables Analytics to process raw data captured from the given site. The processed data will then be inserted into the database. For instructions, see Section 4.1.2, "Developing an Analytics Job for the 'New Browsers' Report." The steps are outlined below:

    1. Select the location that will be used as the input data for the report. For instructions, see Section 4.1.2.1, "Step 1: Select the Input Location."

    2. Add a new L3 table to store the processed data. For instructions, see Section 4.1.2.2, "Step 2: Extend the Schema."

    3. Create a new bean class which will store the output data. For instructions, see Section 4.1.2.3, "Step 3: Create the Beans."

    4. Create a new mapper class which will encapsulate the business logic to process the input data for the report. For instructions, see Section 4.1.2.4, "Step 4: Create the Mapper Classes."

    5. Configure the processor to integrate the bean and mapper classes. For instructions, see Section 4.1.2.5, "Step 5: Adding Beans and Mappers to the Processor Definitions."

  2. Create and configure the "NewBrowsers" report, which will include the new parameter you create in this exercise. For instructions, see "Exercise 4: Creating and Configuring a Report."

Exercise 4: Creating and Configuring a Report

In Chapter 5, "Exercise 4: Creating and Preparing a Report for Viewing" you will create, from scratch, a "NewBrowsers" report, by completing the following steps:

Note :

The "NewBrowsers" report you will be creating in this tutorial, is a duplicate of the default "Browsers" report in your Analytics installation. For the purposes of this tutorial, the xml file and report name of the "Browsers" report you will be configuring, along with the bean and mapper class names, have been renamed to avoid overwriting the default report.

  1. Create a new report file and register it with Analytics as explained in Section 5.2.1, "Creating and Registering the Report File" and outlined below:

    1. Create the XML file that will contain the report code. For instructions, see Section 5.2.1.1, "Step 1: Create the XML File."

    2. Place the file in the Analytics reports directory so that Analytics can access the file. For instructions, see Section 5.2.1.2, "Step 2: Place the XML File in the Analytics Reports Directory."

    3. Label the report components, such as module captions, column heads, and so on by defining them in a property file and registering the file with Analytics, as explained in Section 5.2.1.3, "Step 3: Label the Report Components."

    4. Make the report available to Analytics users, as explained in Section 5.2.1.4, "Step 4: Make the Report Available to Analytics Users."

    5. Test the report, as explained in Section 5.2.1.5, "Step 5: Test the New Report" to make sure it has been coded correctly.

  2. Add a table, as explained in Section 5.2.2, "Adding a Table." A table is the primary method of presenting statistical data in an Analytics report.

  3. Add a time period selector, as explained in Section 5.2.3, "Adding a Time Period Selector." The selector allows users to restrict the statistical data displayed in the report to a specific time period.

  4. Add a data filter, as explained in Section 5.3, "Adding a Filter." Filters allow users to restrict the statistical data displayed in the report to specific parameter values. A separate filter is required for each parameter against which you want to filter data.

  5. Add a chart, as explained in Section 5.3.3, "Adding a Chart." Charts allow you to visually present statistical data in a report.

  6. Test your completed "NewBrowsers" report. At this point, you should have a complete, functional report, as shown in Section 5.3.4, "Testing the Completed 'NewBrowsers' Report."