用户行为日志

This commit is contained in:
xuhe@fangjia.com
2018-05-07 15:17:27 +08:00
parent 742d7be71e
commit 470896f3d7
5 changed files with 67 additions and 3 deletions
+18
View File
@@ -525,6 +525,24 @@ function onPlusReady(){
checkIsLogin();
}
$("a[href='#tabList1'],a[href='#tabList2'],a[href='#tabList3']").click(function(){
var eventType = "";
var type = $(this).text();
if(type.indexOf("房产") >= 0){
eventType = "userInfo_manageHouseClick";
}else if(type.indexOf("关注") >= 0){
eventType = "userInfo_attentionClick";
}else if(type.indexOf("收藏") >= 0){
eventType = "userInfo_collectClick";
}
saveLog(eventType)
})
function saveLog(eventType){
var dataMap = {};
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
}
saveLog("userInfo_manageHouseClick");//默认第一次会调到该方法
</script>
</body>