+

Search Tips   |   Advanced Search

Configure the theme for overlay reports

To integrate the overlay analytics features into the theme, add a theme module to the theme profiles.

Locate the overlay analytics features provided by the theme module wp_analytics_overlay_reports. This module contains a menu contribution, which defines the menu entries that display or hide the overlay reports in the portal user interface. In the default theme, these menu entries are integrated into the Actions menu of the theme.

The theme module for analytics overlay reports is not part of the theme profiles provided by the default theme. We need to explicitly add this module to one or multiple theme profiles.

  1. Open the menu definition file for the Actions menu in WebDAV at...

      fs-type1/themes/Portal8.5/menuDefinitions/pageAction.json

  2. In the menu definition file, find the menu entry of type ModuleRef, which references the theme module wp_analytics_overlay_reports. For example:
            
    {
      "type":"ModuleRef", 
      "id":"wp_analytics_overlay_reports" 
    },
    

  3. To add the theme module for analytics overlay to a deferred theme profile, add the module code to the deferred section of the profile in WebDAV to...

      fs-type1/themes/Portal8.5/profiles/profile_deferred.json

    In the following example, add the deferredModuleIDs code between the ModuleIDs and the wp_analytics_overlay_reports line.

    {
      "moduleIDs": [ ... modules that are loaded immediately...  ... ],  
      "deferredModuleIDs": [ ... modules that are deferred...  ... "wp_analytics_overlay_reports", ... ],  
      ...
    }

  4. Restart the Portal server or invalidate the resource aggregator cache. To invalidate the cache, click Theme Analyzer > Utilities > Control Center > Invalidate Cache.


What to do next

The theme module menu entries are displayed only if the theme module wp_analytics_overlay_reports is part of the theme profile. The theme profile is associated with the portal page being rendered.

If we have a custom modular theme, use the same approach to integrate the overlay features into a different menu.


Parent Display overlay analytics reports

Previous topic: Configure a Credential Vault for overlay reports

Next topic: View overlay analytics statistics