//******************************************************************************* //**************************** DoubleClick SiteAdvance Tag ********************** //* Tag Version : 2.0.1 / aug-27-2002 //* Client Name : Client Name //* //******************************************************************************* function analyticsTrackingStaticHome() { createTagForPage("static", "static home") } function analyticsTrackingStaticLetter() { //alert("Entered analyticsTrackingStaticLetter()"); var path = document.location.pathname; var pattern = /^\/(\w+)/; var result = path.match(pattern); var letter = "unk"; if (result != null) { letter = result[1]; } createTagForPage("static", "static letter " + letter); } function analyticsTrackingStaticPublication() { var path = document.location.pathname; var pattern = /^\/(\w+)\/(\w+)/; var result = path.match(pattern); var pub = "unk"; if (result != null) { pub = result[2]; } createTagForPage("static", "static pub " + pub); } function analyticsTrackingStaticPublicationDate() { var path = document.location.pathname; var pattern = /^\/(\w+)\/(\w+)\/(\w+)/; var result = path.match(pattern); var pub = "unk"; var date = "unk"; if (result != null) { pub = result[2]; pubdate = result[3]; } createTagForPage("static", "static pubdate " + pub + " " + pubdate); } function analyticsTrackingStaticDoc(docid, source) { var path = document.location.pathname; var pattern = /^\/(\w+)\/(\w+)\/(\w+)\/(\w+)/; var result = path.match(pattern); var pub = "unk"; var date = "unk"; var title = "unk"; if (result != null) { pub = result[2]; pubdate = result[3]; title = result[4]; } createTagForPage("static", "static doc " + docid + " " + pub + " " + pubdate + " " + source + " " + title); } function createTagForPage(sectionName, pageName) { //alert("pageName=" + pageName); var DOUBLE_CLICK_SERVER = "highbeam.rpts.net/sa"; //var DOUBLE_CLICK_SERVER = "freakies.alacritude.com/JUNKJUNKJUNK"; // Set client id // You must set your client id before we can start collecting data var src = "955195"; // set client id // Pre-defined variables // These variables are pre-defined and do not need to be modified var tag_start = ""; // create end of image tag var ord = Math.round(Math.random() * 10000000000000000) // create random number // Declare variables // These variables should be populated as needed to create the desired image call var pgnm = pageName; // set page name var sect = sectionName; // set section name var prodinfo = ""; // set product id var cartadd = ""; // set add to cart var convert = ""; // set convert var checkout = ""; // set checkout var custfnl = ""; // set custom funnel var custrpt = ""; // set custom report var useg = ""; // set user segment var ugeo = ""; // set user geo location var unetid = ""; // set unetid var cmd = ""; // set cmd flag, set to "cmd=dev" in order to not process data var pgurl = document.location.protocol + "//" + document.location.host + document.location.pathname; var qstring = document.location.search; if (qstring.length > 0) { qstring = qstring.substring(1,qstring.length); } var ref = escape(document.referrer); // Create actual image call var tag_output = tag_start + ";src=" + src + ";ord=" + ord + "?;pgnm=" + escape(pgnm) + ";sect=" + sect; if (cmd != "") {tag_output += cmd}; if (prodinfo != "") {tag_output += prodinfo}; if (cartadd != "") {tag_output += cartadd}; if (convert != "") {tag_output += convert}; if (checkout != "") {tag_output += checkout}; if (custfnl != "") {tag_output += custfnl}; if (custrpt != "") {tag_output += custrpt}; if (useg != "") {tag_output += useg}; if (ugeo != "") {tag_output += ugeo}; if (unetid != "") {tag_output += uemail}; tag_output += ";pgurl=" + escape(pgurl) if (ref != "") {tag_output += ";ref=" + ref}; if (qstring != "") {tag_output += ";qstring=" + escape(qstring)}; tag_output += tag_end; // Write image call to the web page //alert(tag_output.replace(/;/g,"\n\t;")); document.write(tag_output); } // createTagForPage()