or even.yarn include vue-heatmapjs.Utilization.To use this plugin import it in your main.js.// main.js.bring in Vue coming from 'vue'.bring in heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And after that you can incorporate the v-heatmap instruction to the dom elements you want to track....You may toggle the heatmap on and also off through passing an expression in to the directive:....Button Heatmap....
Using the regulation to a single embedded element:.You may listen for celebrations by passing an afterAdd approach within the plugin alternatives, which are going to allow you to get access to as well as procedure the celebrations recorded for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( information).// you can easily fire this spine to your analytics hosting server.,. ).A cool task readily available on GitHub, aid the writer by expanding it!