js無侵入埋點方案

今天給你們介紹一個js無侵入埋點方案:git

min版: https://github.com/aoping/tra...github

原版:https://github.com/Qquanwei/t...npm

min版是我在原版的基礎上進行優化和精簡開發的,打包後大小隻有8k(原版190k)api

min版提供兩個api: before after
這裏只介紹min版使用:優化

  • 安裝
npm i trackpoint-tools -S  或
npm i trackpoint-tools-min@latest -S
  • 使用

代碼: https://codesandbox.io/s/oxxw...spa

喜歡的能夠starcode

相關文章
相關標籤/搜索