or.yarn incorporate vue-heatmapjs.Consumption.To utilize 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 can easily add the v-heatmap directive to the dom aspects you want to track....You can easily toggle the heatmap on and also off through passing an expression right into the instruction:....Button Heatmap....
Making use of the regulation to a single embedded element:.You may pay attention for activities through passing an afterAdd technique within the plugin alternatives, which will certainly permit you to access as well as method the events captured for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( records).// you can fire this back to your analytics web server.,. ).A great job accessible on GitHub, assist the writer through growing it!