Customize overlay reports
We can customize the own overlay reports by setting specific parameters as required.
The scheme described here applies to all parameters available for overlay reports.
Report parameters for customizing overlay reports
To customize the display of overlay reports, we can provide the additional query parameters listed in the following. We can provide all these parameters at six different levels. The levels are listed and described in a table later in this topic. Depending on the level, we have to prefix the parameters with asa.report . Also depending on the level, specified the parameters and their values in different locations and ways, for example as part of code with an equal sign, or by typing them into fields in a user interface.
- metrics [page|portlet]
We can specify metrics for the page only, for the portlets only, or for a page and all portlets on it:
- metrics
- This affects both page and portlet metrics.
- metrics.page
- This affects only page metrics.
- metrics.portlet
- This affects only portlet metrics.
For these parameters, specify a comma separated list of metrics that to show in the overlay report. Do not include spaces between the items in the comma separated list. Specify the metrics by their column ID. Use all metrics available in an IBM Digital Analytics trend report. The default value is SESSIONS,PAGE_VIEWS.
Note the type of the overlay reports is optimized for displaying two metrics. Specifying fewer than one or more than two metrics may yield unexpected display results. The list of applicable metrics depends on the type of the Coremetrics account.
- granularity
- Specify the interval granularity of the displayed metrics. Set an uppercase letter. The default value is W for weekly reports. Possible values are as follows:
- D
- Daily
- W
- Weekly. Default.
- M
- Monthly
- Q
- Quarterly
- Y
- Yearly
- numPeriods
- Specify the number of periods that to have reported. This starts backwards from the value specified for the parameter period_a. Set a numerical value larger than 1 . The default value is 4 .
- period_a
- Specify the ending date for reports in the format YYYYMMDD . Set a valid date in the past. Reports will show data from this date backwards, with the number of periods as specified by the parameter numPeriods and the granularity as specified by the parameter granularity . The default value is yesterday ; it is computed at the time of the HTTP request in the format YYYYMMDD .
Provide parameters at multiple levels
We can set the parameters for the customized display of overlay reports at six different levels as shown by the following table. Depending on the level, we have to prefix the parameters with asa.report , for example, asa.report.granularity .
specifying parameters . Setting parameters for the customized
If we provide parameters at multiple levels, the settings are applied in the hierarchical order of levels as given in the first table column Level hierarchy. Parameters specified at levels shown in earlier rows in table 1 override parameters shown in last table rows.Level hierarchy Specify the parameter at this level: Prefix the parameter with the following string: Configure the parameter at this layer: Set this parameter using the following method: 1 HTTP request parameter - HTTP request Custom code in the theme or skin 2 Portlet parameter - metadata asa.report. portlet window XML configuration interface 3 Portlet preference asa.report. portlet Portlet Edit mode, XML configuration interface 4 Page parameter - metadata asa.report. page Page Properties dialog, XML configuration interface 5 Portal Configuration Service parameter asa.report. WP Config Service WAS console 6 Default value - WebSphere Portal product code N/A - product code. We cannot change this default value, but we can override it in the layers listed previously.
Customization examples
The following examples for customizing overlay reports show how the override precedence works between different levels in the hierarchy of levels. The examples use the granularity parameter. The precedence hierarchy works the same way for all other report parameters.
- Example 1:
- Scenario: No configuration provided.
- Parameter settings:
Level hierarchy Level Interval granularity key Interval granularity value 1 Request parameter - - 2 Portlet parameter - metadata - - 3 Portlet preference - - 4 Page parameter - metadata - - 5 Configuration parameter - - 6 Default value granularity W (weekly)
- Result: All defaults apply. All overlay reports will show sessions and page views in weekly interval granularity for four weeks, starting backwards from yesterday.
- Example 2:
- Scenario: Interval granularity is overridden on the page level.
- Parameter settings:
Level hierarchy Level Interval granularity key Interval granularity value 1 Request parameter - - 2 Portlet parameter - metadata - - 3 Portlet preference - - 4 Page parameter - metadata asa.report.granularity M (monthly) 5 Configuration parameter - - 6 Default value granularity W (weekly)
- Result: As the granularity setting at the higher level overrules the one at the subordinate level, overlay reports at the page where asa.report.granularity is set show sessions and page views with monthly granularity for four weeks, starting backwards from yesterday. Reports on all other pages will show as specified by the default configuration.
- Example 3:
- Scenario: Interval granularity is overridden at request level.
- Parameter settings:
Level hierarchy Level Interval granularity key Interval granularity value 1 Request parameter granularity W (weekly) 2 Portlet parameter - metadata - - 3 Portlet preference - - 4 Page parameter - metadata asa.report.granularity M (monthly) 5 Configuration parameter - - 6 Default value granularity W (weekly)
- Result: As the request parameter has the highest precedence, overlay reports will show sessions and page views with weekly interval granularity for four weeks, starting backwards from yesterday. Reports on all other pages will show as specified by the default configuration.
Parent Display overlay analytics reportsPrevious topic: View overlay analytics statistics