or.yarn include vue-heatmapjs.Use.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 after that you can easily incorporate the v-heatmap ordinance to the dom elements you want to track....You can easily toggle the heatmap on and off through passing an articulation right into the directive:....Toggle Heatmap....
Making use of the regulation to a single embedded part:.You may pay attention for occasions through passing an afterAdd technique within the plugin possibilities, which will definitely allow you to access as well as process the events caught for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( data) console.log( data).// you can easily fire this back to your analytics web server.,. ).An amazing venture readily available on GitHub, aid the author by increasing it!