or.yarn add vue-heatmapjs.Utilization.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 afterwards you can add the v-heatmap instruction to the dom components you want to track....You can toggle the heatmap on and also off by passing an expression right into the ordinance:....Button Heatmap....
Utilizing the regulation to a singular embedded part:.You can listen for activities through passing an afterAdd strategy within the plugin options, which will definitely allow you to accessibility and process the celebrations caught for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( records).// you may terminate this back to your analytics hosting server.,. ).A cool project available on GitHub, assist the writer by extending it!