or.yarn add vue-heatmapjs.Consumption.To use this plugin bring in it in your main.js.// main.js.import Vue coming from 'vue'.import heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And after that you can easily include the v-heatmap instruction to the dom components you would like to track....You may toggle the heatmap on and also off by passing an articulation in to the directive:....Toggle Heatmap....
Making use of the directive to a single embedded element:.You can listen closely for events by passing an afterAdd technique within the plugin choices, which will definitely allow you to get access to and also procedure the occasions grabbed for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( records).// you may terminate this back to your analytics hosting server.,. ).An amazing job readily available on GitHub, assist the writer through growing it!