or even.yarn include vue-heatmapjs.Usage.To utilize this plugin import it in your main.js.// main.js.bring in Vue from 'vue'.bring in heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And after that you can add the v-heatmap instruction to the dom elements you wish to track....You may toggle the heatmap on as well as off by passing an articulation in to the ordinance:....Button Heatmap....
Using the directive to a single embedded component:.You can pay attention for activities through passing an afterAdd procedure within the plugin possibilities, which will enable you to accessibility and procedure the occasions captured for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( records).// you can easily ax this back to your analytics hosting server.,. ).An awesome project available on GitHub, aid the writer through expanding it!