/* SiteCatalyst code version: H.23.3. Copyright 1996-2012 Adobe, Inc. All Rights Reserved More info available at http://www.omniture.com */ /***************************** REVISIONS ***************************** 2011-07-12 Setup Initial Functionality 2012-01-24 Added POST Functionality */ /************************** CONFIG SECTION **************************/ /* You may add or alter any code config here. */ /*set s_account dynamically via the server on the page for the environment that the page is in */ if (!s_account) { var s_account="cscincorporatecleanup"; } var s=s_gi(s_account) if(s_account=="cscincorporatecleanup"){ s.prop6=document.URL; } /****** SC configuration ******/ /****** config general settings ******/ s.charSet="UTF-8"; /* Conversion Config */ s.currencyCode="USD" /* Link Tracking Config */ s.trackDownloadLinks=true s.trackExternalLinks=true s.trackInlineStats=true s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls,xlsx,docx" s.linkInternalFilters="javascript:,incorporate.com,cscinfo.com,corporate.com,cscglobal.com,llc.com" s.linkLeaveQueryString=false s.linkTrackVars="None" s.linkTrackEvents="None" /****** create and initialize for long image length plugin ******/ var _lc=true; /****** form plugin configuration ******/ s.formList=""; s.trackFormList=false; s.trackPageName=true; s.useCommerce=true; s.varUsed="eVar25"; s.eventList="event14,event15,event16"; /* Plugin Config */ s.usePlugins=true function s_doPlugins(s) { //validate prefix if(!s.pfxID){s.pfxID="[unset]"} else {s.pfxID=s.pfxID.toLowerCase() } //check for simple and detail page names and set to [unset] if not set on page if(!s.simplepageName){s.simplepageName="[unset]"} else {s.simplepageName=s.simplepageName.toLowerCase() } if(!s.detailpageName){s.detailpageName="[unset]"} else {s.detailpageName=s.detailpageName.toLowerCase() } /* ADD LOGIc - if search results page naming and if error page naming here */ //Join the prefix with the page names determined above s.pageName=s.pfxID + "| " + s.simplepageName s.eVar6="D=pageName" s.prop2=s.pfxID + "| " + s.detailpageName s.eVar7="D=c2" s.eVar5="D=c3"; s.eVar18="D=c4"; //Set Time parting timestamp - set to YYYY:MM:DD:HH - classify both prop and evar later var now = new Date(); var now_month = now.getMonth()+1; if(now_month.length == 1) now_month = "0" + now_month; var now_date = now.getDate(); if(now_date.length == 1) now_date = "0" + now_date; var now_hour = now.getHours(); if(now_hour.length == 1) now_hour = "0" + now_hour; s.prop12=s.eVar21 = now.getFullYear() + ":" + now_month + ":" + now_date + ":" + now_hour; // external campaign tracking and campaign stacking s.campaign=s.getQueryParam("iq_id,siq_id,utm_medium",":"); if(!s.campaign){s.campaign=s.getQueryParam("cid")} if(!s.campaign){s.campaign=s.getQueryParam("ET_CID")} s.eVar27="D=v0" s.eVar28="D=v0" s.eVar29="D=v0" s.eVar30="D=v0" s.eVar31="D=v0" //Alternate alternate external campaign stacking s.eVar11=s.crossVisitParticipation(s.campaign,'s_ev11','30','10','>','purchase','1') //internal campaign tracking s.eVar2=s.getQueryParam("ET_RID"); s.eVar34=s.crossVisitParticipation(s.eVar2,'s_ev34','30','10','>','purchase','1') // Suppress eVar34 for internal sales reps that are logged in. if ( s.prop18 ) { s.eVar34 = ""; } //Set Goldmine ID for integration s.eVar37="D=c31" //Set campaign pathing and page+campaign pathing if(s.campaign){s.prop1=s.campaign} if(s.campaign){s.prop37=s.pageName + "| "+ s.campaign} //Set campaign code value if not set on the page from the cookie - Chris review if(!s.eVar32){s.eVar32=s.getQueryParam("campaigncode")} //Set campaign value if not set on the page from the cookie if(!s.eVar33){s.eVar33=s.getQueryParam("campaign")} //Get New vs. Repeat s.prop9=s.getNewRepeat(365) s.eVar9="D=c9" //Get Previous Page s.prop11=s.getPreviousValue(s.pageName,'gpv_p11','') //Keep legacy date of visit s.eVar12=(new Date().getFullYear())+(((new Date().getMonth()<9)?("0"):(""))+(new Date().getMonth()+1))+(((new Date().getDate()<10)?("0"):(""))+(new Date().getDate())); //Keep legacy date of first visit if(!s.eVar15){s.eVar15=(new Date().getFullYear())+(((new Date().getMonth()<9)?("0"):(""))+(new Date().getMonth()+1))+(((new Date().getDate()<10)?("0"):(""))+(new Date().getDate())) } //Segment by affiliate - requires affiliate=[value] in query string s.eVar17=s.getQueryParam("Affiliate"); //replace affiliate with correct name param //Set company on page for llc, cscglobal etc to override - JS to set incorporate as a default //COULD AUTOMATE FURTHER using domain etc... if(!s.prop38){s.prop38="incorporate"} else {s.prop38=s.prop38.toLowerCase() } //Get Days Since Last Visit s.prop19=s.getDaysSinceLastVisit('s_lv') s.eVar35="D=c19" //Get Visit Number s.prop7=s.getVisitNum(365) s.eVar36="D=c7" //Get URL plus page identifiable qs params and not user identifiable qs params if(!s.prop6){s.prop6=document.URL.split("?")[0].toLowerCase()} else {s.prop6=s.prop6.toLowerCase() } //Get Domain Name if(!s.prop40){s.prop40=document.location.host.toLowerCase()} //Use the POST instead of GET for for all IE image requests if(_lc && navigator.appName.indexOf('Explorer')>-1)s.checkLength(); //link id and link position tracking using a plugin created for HBX that is really powerful s.linkTrackVars="prop26,prop27,prop28,prop29"; s.hbx_lt="manual"; s.setupLinkTrack("prop26,prop27,prop28,prop29","SC_LINK"); s.linkTrackVars=""; //Set first level nav default if(s.prop13){s.prop13.toLowerCase()} s.eVar23="D=c13"; //Set second level nav default if(s.prop14){s.prop14.toLowerCase()} s.eVar24="D=c14"; //Set Channel Tracking s.channel="D=c14"; // Set evar counter part from page code for Formation pkg prop15 and and add-on prop16 if(s.prop15){s.eVar19="D=c15"} if(s.prop16){s.eVar20="D=c16"} // tnt integration - evar26 is reserved for TNT data if 2 way integration is needed s.tnt=s.trackTNT(); } s.doPlugins=s_doPlugins /* WARNING: Changing any of the below variables will cause drastic changes to how your visitor data is collected. Changes should only be made when instructed to do so by your account manager.*/ /* START UTILITY Function: apl v1.1 */ s.apl=new Function("l","v","d","u","" +"var s=this,m=0;if(!l)l='';if(u){var i,n,a=s.split(l,d);for(i=0;i-1?i:l.length;a[x" +"++]=l.substring(0,i);l=l.substring(i+d.length);}return a"); /* END UTILITY Function: split */ /* START UTILITY Function: s.join: 1.0 - Joins an array into a string */ s.join=new Function("v","p","" +"var s=this;var f,b,d,w;if(p){f=p.front?p.front:'';b=p.back?p.back" +":'';d=p.delim?p.delim:'';w=p.wrap?p.wrap:'';}var str='';for(var x=0" +";x-1?s.trackingServerSecure:s.trackingServ" +"er;urlnew+='/b/ss/'+s.un+'/0/FAS-3.4.5-AS3C/'+sess+'?AQB=1&ndh=1&t" +"=';urlnew+=vt+'/'+tm.getMonth()+'/'+y+' '+tm.getHours()+':'+tm.getMinu" +"tes()+':'+tm.getSeconds()+' '+tm.getDay()+' '+tm.getTimezoneOffset(" +");urlnew+='&vid='+vid+s.hav()+'&AQE=1';if(urlnew.length>2047&&navigat" +"or.appName.indexOf('Explorer')>-1){s.clp(urlnew);s_doPlugins=false" +";_scEnabled='post';_lc=false;}"); s.cce=new Function("t","" +"var o=document.createElement(t);o.style.display='none';document.get" +"ElementsByTagName('body')[0].appendChild(o);return o;"); s.clp=new Function("q","" +"var is_ie=navigator.appName.indexOf('Explorer')>-1;var ifr=is_ie?do" +"cument.createElement('