close
rpdObj.sendRequest(spaceid, 'Cat', 'CatPage', ['rpd-zid', 'rpd-sbid', 'rpd-catid']);
}
else if (docURL.indexOf('catitemid=') >= 0) {
rpdObj.sendRequest(spaceid, 'CatItem', 'CatItemPage', ['rpd-zid', 'rpd-sbid', 'rpd-catid', 'rpd-itemid']);
}
else if (docURL.indexOf('payshop_ok.asp') >= 0 || docURL.indexOf('pay-delivplace_ok.asp') >= 0) {
rpdObj.sendRequest(spaceid, 'Checkout', 'Completion', ['rpd-gdidlist', 'rpd-itemidlist']);
}
}
function dycRequest() {
if (document.getElementById('spaceid')) {
setTimeout(function(){
// call dycTracker to get spaceid
dycTracker('zno', 'subno', function(spaceid) {
// call rpdTracker to send Rapid request
rpdTracker(spaceid);
});
}, 0);
}
}
dycRequest();
function ywaPageViewRequest() {
YWAT.prototype.setBD = function(v){ if (v) this.BU = this.BU.replace(this.BD, this.BD = location.protocol + "//" + v); }
setTimeout(function(){
var YWATracker = YWA.getTracker("10001392760262");
YWATracker.setBD("a.analytics.yahoo.com");
YWATracker.setDomains("buy.yahoo.com.tw,*.buy.yahoo.com.tw,*.buy.yahoo.com,yahoo.monday.com.tw,*.yahoo.monday.com.tw,login.yahoo.com");
YWATracker.setDocumentGroup("Catalog - Catitem");
YWATracker.setDocumentName("G600系列雙核心");
YWATracker.setCF("49", "3");
YWATracker.setCF("50", "26");
YWATracker.setCF("51", "803");
YWATracker.setCF("52", "64083");
YWATracker.submit();
}, 0);
setTimeout(function(){
var YWATracker = YWA.getTracker("1000986400535");
YWATracker.setBD("apac.analytics.yahoo.com");
YWATracker.setDomains("buy.yahoo.com.tw,*.buy.yahoo.com.tw,*.buy.yahoo.com,yahoo.monday.com.tw,*.yahoo.monday.com.tw,login.yahoo.com");
YWATracker.setDocumentGroup("Catalog - Catitem");
YWATracker.setDocumentName("G600系列雙核心");
YWATracker.setCF("49", "3");
YWATracker.setCF("50", "26");
YWATracker.setCF("51", "803");
YWATracker.setCF("52", "64083");
YWATracker.submit();
}, 0);
}
ywaPageViewRequest();
function ywaClickTracker() {
function ywaClick(param) {
var YWATracker = YWA.getTracker(param.sn);
YWATracker.setAction("07");
YWATracker.setCF("21", param.group);
YWATracker.setCF("22", param.hpp);
YWATracker.submit_action();
}
function ywaHandler(hpp) {
return function(e) {
ywaClick({ hpp: hpp, sn: "10001392760262", group: "Catalog - Catitem" });
ywaClick({ hpp: hpp, sn: "1000986400535", group: "Catalog - Catitem" });
if (e.ctrlKey || e.metaKey || e.shiftKey) return;
var alink = e.currentTarget || e.srcElement;
while (alink && (alink.tagName != 'A')) {
alink = alink.parentNode;
}
if (!alink) return;
var target = alink.target;
if (target && (target != '_top')) return;
if (alink.getAttribute('nofollow')) return;
e.preventDefault ? e.preventDefault() : e.returnValue = false;
var classList = alink.getAttribute('class');
if (/\byui3-menu-label\b/.test(classList) && !/\byui3-menu-label-menuvisible\b/.test(classList)) return;
var href = alink.href.replace(/[\\?&]hpp=([^]*)$/, '');
setTimeout(function(){ location.href = href; }, 300);
};
}
var a = document.getElementsByTagName('a');
for (var i = 0; i < a.length; i++) {
var href = a[i].getAttribute('href');
if (!href) continue;
var m = /[\\?&]hpp=([^]*)/.exec(href);
if (!m) continue;
if (typeof(window.addEventListener) != "undefined") {
a[i].addEventListener('click', ywaHandler(m[1]), false);
} else {
a[i].attachEvent('onclick', ywaHandler(m[1]), false);
}
}
// YWA for Flash Click
window.YWA_Flash_Click = function(btnID, FlashName) {
var YWATracker = YWA.getTracker("10001392760262");
if (btnID != "") { YWATracker.setAction(btnID); }
YWATracker.setCF(25, FlashName);
YWATracker.submit_action();
}
}
ywaClickTracker();