JavaScript Page Tag Code

Once you have put one or more operational clickstream collection servers in place, the page tag code needs to be inserted into the pages of interest for data collection. The data that is collected by a page tag is said to be tracked. The SAS Data Surveyor for Clickstream Data provides a robust page tag that allows the tracking of the following page components:
  • page loads (even if forward and back buttons are used)
  • link clicks
  • form data elements such as POST data (turned off by default)
  • cookie data elements such as name/value pairs and standard cookies
  • meta tag data
  • user-defined data elements such as name/value pairs
  • rich Internet application events (such as Flash and AJAX)
  • predefined data elements. For more information, see Predefined Data Elements.
Most of the time, you insert a full page tag that includes both the required lines and optional lines. This full tag enables you to customize your use of the clickstream collection server and collect additional types of data. For information about full page tags, see Inserting a Full Page Tag. For information about customized data tracking, see Customizing a Full Page Tag.You can also insert a minimal page tag that includes only a set of required lines to enable default data tracking. For information about minimal page tags, see Inserting a Minimal Tag.