Google Analytics:为链接点击设定事件追踪的方法转载自:http://www.renfei.org/blog/google-analytics-event-tracking-for-links.htmlvar trackOutboundLink = function(url) {
var redirectTriggered = false;
ga('send', 'event', 'outbound', 'click', url, {'hitCallback':
function() {
redirectTriggered = true;
document.location = url;
}
});
setTimeout(function() {
if (!redirectTriggered) {
document.location = url;
}
}, 1500);
}您可能也喜欢:thinkphp前台模版字符串截取第一章:初识Java-笔记(我要自学网)100万件10寸平盘隧道窑设计-窑炉课程设计-景德镇陶瓷学院安装 GAppProxy 代理简明教程无觅
...
继续阅读
(224)