Automatic page instrumentation allows you to automatically tag each of your customer-facing Web pages with the ATG JavaScript library references, as well as to output other parameters that are used for data persistence purposes, without changing any code for your site. When configuring automatic page instrumentation, set the page instrumentation filters that are used to add the Click-to-Call code to your pages.

The page instrumentation engine writes JavaScript variables to the Web page. These variables are used to identify the customer’s environment and to store information that allows you to create customized rules that display links and pop-ups based on specific criteria. For example:

var _atg_estara_call_token\=100001-1234;
var _atg_estara_locale=en_US;
Adding Automatic Page Instrumentation

To add automatic page instrumentation, add the following to your customer-facing store’s web.xml file:

<filter>
  <filter-name>ADCDataInsertFilter</filter-name>
  <filter-class>atg.adc.filter.ADCDataInsertFilter</filter-class>
  <init-param>
    <param-name>loggingDebug</param-name>
    <param-value>false</param-value>
  </init-param>
  <init-param>
    <param-name>loggingWarning</param-name>
    <param-value>true</param-value>
  </init-param>
  <init-param>
    <param-name>loggingError</param-name>
    <param-value>true</param-value>
  </init-param>
  <init-param>
    <param-name>loggingInfo</param-name>
    <param-value>true</param-value>
  </init-param>
</filter>
<filter-mapping>
  <filter-name>ADCDataInsertFilter</filter-name>
  <url-pattern>*.jsp</url-pattern>
</filter-mapping>

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices