Socket
Socket
Sign inDemoInstall

drips

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drips

PV,UV,事件处理


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

sd-track-event


安装使用


  npm install sd-track-event --save
  Vue.use(sdTrackEvent, {
    biz: 'cf', //cf, hz, sdb
    selfTag: storage.get('uuid')
    authorizationV2: xxx
  })

  切换路由使用:
  /*
    page_enter 页面访问事件
    click 单点击事件 用户单击某按钮或其他页面元素
    share 分享事件 分享动作发生时
    input 输入事件 用户在页面输入内容时
    api 接口调用事件
    swipe 滑动事件 手指在屏幕上滑动时会触发
  */
  this.$sdTrackEvent.send({
    op: 'page_enter',
    fromPath: from.fullPath,
    subChannel: '',// 子渠道
    toPath: to.fullPath,
    channel: to.query.channel,
    testCode: to.query.grayMode,
    extInfo: {
      case_id: to.params.infoUuid || to.query.infoUuid
    }
  })

  点击事件绑定:
  <div v-sd-track="'ID'" data-test-flag="2" data-ext-info-test_test="test" .....></div>

Options

selfTag: '',// 用户唯一标识 biz: '',// 业务标识 authorizationV2: '',// 登录票 channel: '',// 渠道 elementCode: '',// 事件ID testCode: '',// ABTEST标识 platform: 'wx',// 什么平台 subChannel: '',// 子渠道 fromPath: '',// 从哪来 toPath: '',// 到哪去 extInfo: ''// 自定义字段

FAQs

Package last updated on 21 Jun 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc