or.yarn incorporate vue-heatmapjs.Utilization.To utilize this plugin bring in it in your main.js.// main.js.bring in Vue coming from 'vue'.import heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And afterwards you may include the v-heatmap ordinance to the dom components you intend to track....You may toggle the heatmap on and off through passing an expression right into the ordinance:....Toggle Heatmap....
Making use of the directive to a singular embedded part:.You can easily listen for activities by passing an afterAdd procedure within the plugin possibilities, which will certainly enable you to get access to and procedure the occasions recorded for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( data).// you can discharge this back to your analytics web server.,. ).A cool venture offered on GitHub, aid the writer through increasing it!