AmazingDreams / vue-matomo

Vue plugin for Matomo Analytics
MIT License
274 stars 61 forks source link

心跳怎么加,兄弟 #43

Closed Moustache-YJ closed 4 years ago

AmazingDreams commented 4 years ago

抱歉,我不会说中文:这似乎是我可以轻松实现的简单选择,也可以自己做

Sorry I don't speak chinese: this seems like a simple option I can easily implement or you can do yourself

window._paq.push(['enableHeartBeatTimer'])

// or ...

this.$matomo.enableHeartBeatTimer()
AmazingDreams commented 4 years ago

v3.12.0-5


  // Enable the heartbeat timer (https://developer.matomo.org/guides/tracking-javascript-guide#accurately-measure-the-time-spent-on-each-page)
  // Default: false
  enableHeartBeatTimer: true,

  // Set the heartbeat timer interval
  // Default: 15
  heartBeatTimerInterval: 15,