博客列表 >jsvascript ebug事件属性采集

jsvascript ebug事件属性采集

弘德誉曦的博客
弘德誉曦的博客原创
2018年01月20日 12:01:571322浏览

注:模块遵守AMD规范

define(["ebug"],function(ebug){
$(document).ready(function(){
var property = {
eventName : 'commodityDetail',     
properties : {
$screen_height: ebug.$screen_height,     //屏幕高度
$screen_width : ebug.$screen_width,     //屏幕宽度
$is_first_day : ebug.$is_first_day('commodityDetail'),     //是否首日访问
$latest_referrer_host : ebug.$latest_referrer_host(), //最近一次站外域名
$latest_search_keyword : ebug.$latest_search_keyword,    //最近一次搜索引擎关键词
$latest_traffic_source_type : ebug.$latest_traffic_source_type(), //最近一次流量来源类型    
$referrer_host : ebug.$referrer_host,//前向域名
$url : ebug.$url,          //页面地址
viw_page_name_zh : ebug.viw_page_name_zh,//页面标题 $title(有现用属性名)
$is_first_time : ebug.$is_first_time('commodityDetail') //是否首次访问
},         
  eventType : 'PageView'     
};
console.log(property)
ebug.send(property);
});
});


声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议