Defining the output tag in the analytics configuration file (biConfig.xml)

You can define an output tag in your biConfig.xml file by adding an <output> element. Within the <output> element, add the JavaScript snippets, or any other content, that you want to write to a specific location in your store pages.

About this task

This is an optional procedure; if you are satisfied with the default implementation of the output tag, you do not have to define a new output tag. To learn about the default implementation, see Using the output tag to configure the placement of IBM Digital Analytics JavaScript snippets.

Procedure

  1. Open the workspace_dir\crs-web\WebContent\WEB-INF\xml\config\bi\biConfig.xml file.
  2. To define a new <output> tag, within the <store> element, paste the following code snippet:
    <output section="your_section_name">
    <![CDATA[
    your_content
    ]]>
    <output>
  3. Replace your_content with the content you want to write to your store pages.
  4. For the section parameter, replace your_section_name with a name that represents the location to place the IBM Digital Analytics JavaScript snippets in the JSP page.
    You can use any name to define the location, for example, endofpage or body.
  5. Save and close the file.