/** * Omniture Metrics class */ var Metrics = { /** * initialization method.
* should be called in the HTML page right after * the Omniture Javascript has been declared. */ initialize: function() { // any overriding values here before the 'page view' call is made }, // end initialize() /** * fire a click action for a link or button that does not result in exiting the site * DO NOT CALL DIRECTLY * @param Object the link object (usually 'this') * @param String the current page name * @param String the link asset name (example: 'top nav: lease a vehicle: index') */ onsiteClick: function(obj,pagename,asset) { // set the link asset name this.s.prop5 = pagename+ ": " + asset.toLowerCase(); // fire off the call this.s.tl(obj,"o",asset); }, // end onsiteClick() /** * fire a click action for a link or button that results in exiting the site * DO NOT CALL DIRECTLY * @param Object obj the link object (usually 'this') * @param String asset where the link resides (example: 'top nav: lease a vehicle: index') * @param String elh_value the exit link hierarchy value (example: ) * @param String url the destination url */ offsiteClick: function(obj,asset,elh_value,url) { // set exit link hierarchy // NOTE: variable to be determined this.s.hier2 = elh_value.toLowerCase(); // click prop this.s.prop5 = s.pageName + asset.toLowerCase(); // fire off the call this.s.tl(obj,"e","exit link"+url); }, // end offsiteClick() /** * Navigation onsite click * @param Object the link object (usually 'this') * @param String the page name * @param String the the link asset name */ navOnsiteClick: function(obj,pagename,asset) { // create new metrics object this.s = s_gi(s_account); // declare variables that needed to be tracked this.s.linkTrackVars = "prop5"; // call the pre-defined onsiteClick // method to fire off the call this.onsiteClick(obj,pagename,asset); }, // end navOnsiteClick() /** * Navigation off-site click * @param Object the link object * @param String the channel * @param String the page name * @param String the asset name * @param String the brand code * @param String the exit link url */ navOffsiteClick: function(obj,channel,pagename,asset,brand,url) { // create new metrics object this.s = s_gi(s_account); // NOTE: ELH and EventD variables are yet to be determined. this.s.linkTrackVars = "prop5, hier2, event4"; // construct the exit link hierarchy // first, make sure that there is a brand if (brand.length < 1) { // if no brand, say "other" brand = "other"; } // create the Exit Link Heirarchy var elh = brand+","+channel+","+pagename+","+asset+","+url; // fire off the exit link click this.offsiteClick(obj,asset,elh,url); }, // end navOffsiteClick() paymentEstimator: function() { this.s = s_gi(s_account); this.s.linkTrackVars = "event43,eVar48,prop48,eVar49,prop49"; this.s.eVar48 = this.s.prop48 = "fmcc payment estimator"; this.s.eVar49 = this.s.prop49 = osc_site; this.s.tl(obj,"o",""); }, // end paymentEstimator() downloadPDF: function() { this.s = s_gi(s_account); this.s.linkTrackVars = "event43,eVar48,prop48"; this.s.eVar48 = this.s.prop48 = "ebill invoice download pdf"; }, downloadCSV: function() { this.s = s_gi(s_account); this.s.linkTrackVars = "event43,eVar48,prop48"; this.s.eVar48 = this.s.prop48 = "ebill invoice download csv"; }, /** * dummy method - no methods below this */ zzz: function() { } // end zzz() }; // end Metrics class