
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
@cktech/tracker
Advanced tools
采用rrweb进行会话录制的前端js库。
记录4个动作(custom event)和3个数据(metadata),如下:
以上行为统一使用
tracker.addAction()
方法进行记录,第一个参数为事件名,第二个参数为元数据。事件名为字符串,可选值为:
['页面加载', '下单', '开始支付', '完成支付']
元数据为对象,对象的key的取值有:['userId', 'orderId', 'payTime']
import getTracker from '@util/tracker'
<script>
export default {
beforeCreate() {
this.tracker = getTracker()
},
created() {
this.tracker.start()
this.tracker.addAction('页面加载', {userId:localStorage.getItem('userId')})
}
}
</script>
const tracker = getTracker()
tracker.addAction('下单', {orderId: '', userId: ''})
const tracker = getTracker()
tracker.addAction('开始支付', {orderId:''})
const tracker = getTracker()
tracker.addAction('完成支付', {orderId: '', payTime: ''})
FAQs
rrweb tracker for web session record
The npm package @cktech/tracker receives a total of 2 weekly downloads. As such, @cktech/tracker popularity was classified as not popular.
We found that @cktech/tracker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.