2.1.5 • Published 5 months ago
action-spider v2.1.5
全埋点脚本-web版
配置项
url:'服务器地址',
app_name:'app前缀'
custemAttr :[] 需要收集的元素属性 (可选)
session_id:'' 用户的session_id字段名 (可选)
localName:[] 数组 从localstorage(优先级高)、sessionstorge 或cookie取值
每2s检查一次,有记录就发送 多次发送失败,间隔时间会延长再检查。
使用
npm方式
import { setConfig } from 'action-spider';
setConfig({ url: '/lc/log', app_name: 'dd_report',custemAttr:['id','class'] })
直接引入js
<script type="module">
import {setConfig} from "./allpoint.js"
setConfig({url:'服务器地址',app_name:'app前缀',custemAttr:['id','class']})
</script>
新增 point属性 :
直接捕获当前节点(判断5层嵌套)
<div id="wrapDiv" point text="只捕获这层元素">
<span>span</span>
</div>
<div class="5" > 层级五
<div class="4"> 层级四
<div class="3" point> 层级三 (忽略子层级)
<div class="2"> 层级二
<div class="1">
层级一
</div>
</div>
</div>
</div>
</div>
2.1.2
8 months ago
2.1.1
8 months ago
2.1.4
5 months ago
2.1.3
8 months ago
2.1.5
5 months ago
2.0.1
8 months ago
2.1.0
1 year ago
2.0.0
1 year ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.0
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago