In addition to inserting the call to the JavaScript library in the <head> element, the ADC pipeline inserts clickstream tracking code in the <body> element of the page. This is HTML that is not actually displayed, but which is used to supply Oracle Recommendations with information about the contents of the page for tracking purposes. After the page loads, the atgsvcs.js script executes and sends the information in the clickstream code to Oracle Recommendations.

For example, on a product detail page, the tracking code provides information about the product being viewed:

<div id="cs-cfg" style="display:none !important;">
  <dl class="cs-cfg">
    <dt>retailerId</dt><dd>fb4a7379</dd>
    <dt>view</dt>
      <dd>
        <dl>
          <dt>storeId</dt><dd>storeSiteUS</dd>
          <dt>excludeDefaultStore</dt><dd>true</dd>
          <dt>productId</dt><dd>prod20009</dd>
        </dl>
      </dd>
    <dt>-inc-price</dt><dd>true</dd>
    <dt>locale</dt><dd>US</dd>
    <dt>-failover</dt>
      <dd>
        <dl>
          <dt>content</dt><dd>true</dd>
        </dl>
      </dd>
  </dl>
</div>

Clickstream tracking code on other pages may include different information. For example, the tracking code for the shopping cart page includes information about the items in the cart, and the tracking code for a search results page includes information about the search term the customer entered. This information is used by Oracle Recommendations to determine, for example, the likelihood of a certain item being purchased if it was found by entering a specific search term.