or even.anecdote include vue-heatmapjs.Utilization.To use this plugin bring in it in your main.js.// main.js.import Vue coming from 'vue'.bring in heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And then you may include the v-heatmap instruction to the dom elements you wish to track....You can toggle the heatmap on and off by passing an articulation in to the directive:....Button Heatmap....
Making use of the directive to a solitary nested element:.You can pay attention for activities by passing an afterAdd procedure within the plugin possibilities, which will permit you to accessibility and method the occasions captured for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( information).// you can easily terminate this back to your analytics hosting server.,. ).A great task available on GitHub, help the writer through growing it!