Open butterandfly opened 9 years ago
添加___log方法:
function ___log(label) {
/* 请将 LabelValue 与 Value 替换为对应字段的取值 */
window._CiQ10081 = window._CiQ10081 || [];
window._CiQ10081.push(['_trackEvent', {
type: 1,
labels: [{'按钮名称': label}],
values: [{'数量': 1}]
}]);
window.CClickiV3 && window.CClickiV3[10081] && window.CClickiV3[10081]._flushObserver(function () {
});
}
注册执行时调用:
window._CiQ10081 = window._CiQ10081 || [];
window._CiQ10081.push(['_trackEvent', {
type: 2,
labels: [
{'入住时间': enterTime}
, {'离开时间': leaveTime}
, {'房型': roomstyle}
, {'房间数': roomcount}
, {'预定人': name}
, {'手机': phone}
, {'是否吸烟': smoke}
, {'特殊要求': askfor}
, {'总价': amountJq.text()}
],
values: [
{'数量': 1}
]
}]);
window.CClickiV3 && window.CClickiV3[10081] && window.CClickiV3[10081]._flushObserver(function () {
_CWiQ.push(['_trackReg', 1]);
___log('submit');
alert('预约成功!');
});
head之前需要添加: