mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
burying points for analytics
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
export default {
|
||||
sendPv (page) {
|
||||
window._hmt.push(['_trackPageview', page])
|
||||
if (localStorage.getItem('useStats') !== '0') {
|
||||
window._hmt.push(['_trackPageview', page])
|
||||
}
|
||||
},
|
||||
sendEv (ev) {
|
||||
window._hmt.push(['_trackCustomEvent', ev])
|
||||
sendEv (category, eventName, optLabel, optValue) {
|
||||
if (localStorage.getItem('useStats') !== '0') {
|
||||
window._hmt.push(['_trackEvent', category, eventName, optLabel, optValue])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user