Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fe-monitor-action

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fe-monitor-action

前端行为采集

  • 1.0.0-rc.2
  • latest
  • Source
  • npm
  • Socket score

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

fe-monitor-action

前端用户行为采集sdk

安装

npm安装

$ npm install fe-monitor-action

CDN

<script src="https://cdn.jsdelivr.net/npm/fe-monitor-action@(version)/lib/track.js"></script>
<!-- 例如 -->
<script src="https://cdn.jsdelivr.net/npm/fe-monitor-action@1.0.0-rc.2/lib/track.js"></script>

使用方式


import track from 'fe-monitor-action'; 
 
// 重新安装
track.install({
    uploadUrl: "/someApi",
    isDebug: false,
    autoTrack: true,
    autoHeatmap: false,
    autoVisual: fasle,
    autoHash: true,
    session: "crossDomain"
});

配置参数

参数名描述类型默认值
uploadUrl行为数据上报API地址string--
isDebug是否开启调试booleanfalse
router监听路由方式'hash'、'history'hash
autoTrack是否启用原生标签埋点booleantrue
autoHeatmap是否启用热图功能booleanfalse
autoHash是否监听hash路径变化booltrue
sessionsession存储模式(跨域关联session)enum('crossSubDomain'、'storage',‘crossDomain’)crossSubDomain

FAQs

Package last updated on 11 Nov 2020

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