hellogen-monitor-client
Install
npm install --save hellogen-monitor-client
Update
npm i hellogen-monitor-client@latest
Add monitor in your website
import HG_MONITOR from 'hellogen-monitor-client'
Action function code eg
HG_MONITOR({
action: 'action name',
action_value: 'action value'
}, (res) => {
// response success or errorMsg
})
Use by web link
// Copy this code in your html head
<script src="http://static.huashengdong.com/HG/baseLook/js/hgBaseLook-min.js"></script>
Action function
const { HELLOGEN_REQ } = window
HG_MONITOR({
action: 'action name',
action_value: 'action value'
}, (res) => {
// response success or errorMsg
})
Maybe web link is not a latest code.