function st_siteDats() { // Track a data value for all pages in this // site as "MarketingPages" since we // are dealing with our Marketing site. st_rq.dats.add("CONTENT_GROUP","MarketingPages",true,0x4 /*capture on page load only*/); }
function st_pageDats() { // Track the shopping cart total for this page only st_rq.dats.add("CART_TOTAL",nTotal,true,0x1); /*capture on form submit only*/); }
st_cfg.cap['M']="0";
. You can also capture only the
meta tag named Author with the following code: st_cfg.cap['M']="0:Author";
. For details about configuring meta tracking, see the documentation
for the st_cfg.cap array element in the SAS Data Surveyor
for Clickstream Data 2.1 Page Tagging JavaScript Reference at http://support.sas.com/rnd/gendoc/clickstream/21M1/en/.
st_cfg.cap['C']="0";
. You can capture only chocolate,
macadamia, and fudge cookies with the following code: st_cfg.cap['C']="0:chocolate,macadamia,fudge";
. For
details about configuring cookies tracking, see the documentation
for the st_cfg.cap array element in the SAS Data Surveyor
for Clickstream Data 2.1 Page Tagging JavaScript Reference at http://support.sas.com/rnd/gendoc/clickstream/21M1/en/.
st_cfg.cap['L']="";
tracks every link on a page. However, you can change the link configuration
in either st_siteCfg() or st_pageCfg()). For example, you can enter st_cfg.cap['L']="0";
to prevent the tracking of any
links.
st_cfg.cap['L']="";
, you can also track specific types of links by configuring the st_trk
element. See Configuring Link Tracking in Tagged Pages for detailed information. For
details about configuring link tracking, see the documentation for
the cap array element in the SAS Data Surveyor for Clickstream
Data 2.1 Page Tagging JavaScript Reference at http://support.sas.com/rnd/gendoc/clickstream/21M1/en/.
st_trk()
method to determine whether
an item is tracked and instrumented for data collection, as follows:
function st_trk(o) { switch(o.nodeName.toLowerCase()) { case 'a': // Link elements return true; break; default: return true; } }
st_trk()
, you can
optionally use the st_sar()
method to control
how data is collected. This method enables you to use your own programming
logic to control the stop-and-re-click behavior on and off, as follows:
function st_sar(o) { switch(o.nodeName.toLowerCase()) { case 'a': // Link elements if ( o.href.indexOf('action=watch')>0 // MediaWiki watch/unwatch button handling || o.href.indexOf('action=unwatch')>0) return false; else return true; break; default: return true; }
st_cfg.cap['F']="0";
In addition,
you can enter the following code: st_cfg.cap['F']="1:1:formA,ccard,expdate:0:formB,fname,lname"
. This code tracks all of the forms on the page, but it (1) skips
the elements named ccard and expdate in a form named formA and (2)
captures only the elements named fname and lname in a form named formB.
For details about configuring form tracking, see the documentation
for the cap array element in the SAS Data Surveyor for
Clickstream Data 2.1 Page Tagging JavaScript Reference at http://support.sas.com/rnd/gendoc/clickstream/21M1/en/.
st_rq.dats.add("Name1","Value1",true,0x2 /* capture for click events only */); st_rq.dats.add("Name2","Value2",true,0x2 /* capture for click events only */); st_rq.dats.add("Name3","Value3",true,0x2 /* capture for click events only */); st_rq.send(st_rq.RQST_CLK,”click”);