转化安装代码转化代码分为两部分,基础代码复制并粘贴到网址代码的<head>和</head>之间,转化代码添加到相应的目标上转化代码:HTML方式(二选一)用户点击某个组件一次就发送一次转化代码:JS方式(二选一)某一事件成功了才会统计,比如申请信用卡,表单提交成功后才发送log,而不是每点击提交按钮一次就发送。基础代码 <script type="text/javascript"> (function(root) { root._tt_config = true; var ta = document.createElement('script'); ta.type = 'text/javascript'; ta.async = true; ta.src = document.location.protocol + '//' + 's1.pstatp.com/bytecom/resource/track_log/src/toutiao-track-log.js'; ta.onerror = function () { var request = new XMLHttpRequest(); var web_url = window.encodeURIComponent(window.location.href); var js_url = ta.src; var url = '//ad.toutiao.com/link_monitor/cdn_failed?web_url=' + web_url + '&js_url=' + js_url + '&convert_id=74436993780'; request.open('GET', url, true); request.send(null); } var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ta, s); })(window); </script>
转化代码 _taq.push({convert_id: "74436993780", event_type: "wechat"})


转化代码 _taq.push({convert_id: "74436993780", event_type: "wechat"})


