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

We 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, to write to a specific location in the store pages.


Task info

This is an optional procedure; if we 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 Use 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 we want to write to the 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. We can use any name to define the location, for example, endofpage or body.

  5. Save and close the file.


Next topic: Adding the output tag to the store JSP pages


Related concepts
Use the output tag to configure the placement of IBM Digital Analytics JavaScript snippets


Related reference
Sample biConfig.xml file for IBM Digital Analytics