or.yarn include vue-heatmapjs.Use.To utilize this plugin bring in it in your main.js.// main.js.import Vue coming from 'vue'.bring in heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And after that you may incorporate the v-heatmap ordinance to the dom factors you desire to track....You can toggle the heatmap on and off through passing an expression in to the ordinance:....Toggle Heatmap....
Making use of the directive to a solitary nested part:.You can listen closely for events by passing an afterAdd strategy within the plugin possibilities, which will enable you to gain access to and also procedure the activities grabbed for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( data).// you can easily ax this back to your analytics hosting server.,. ).A great venture readily available on GitHub, assist the writer through extending it!