or.yarn add vue-heatmapjs.Usage.To use this plugin bring in it in your main.js.// main.js.bring in Vue from 'vue'.bring in heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And then you may add the v-heatmap directive to the dom components you intend to track....You can easily toggle the heatmap on and also off by passing an articulation right into the regulation:....Toggle Heatmap....
Using the directive to a single nested component:.You can easily pay attention for events by passing an afterAdd approach within the plugin alternatives, which will enable you to get access to and procedure the occasions recorded for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( data).// you may shoot this spine to your analytics web server.,. ).An awesome venture offered on GitHub, aid the author by expanding it!