or.anecdote include vue-heatmapjs.Consumption.To use this plugin import it in your main.js.// main.js.import Vue coming from 'vue'.import heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And afterwards you can add the v-heatmap directive to the dom factors you intend to track....You may toggle the heatmap on and off through passing an articulation in to the directive:....Toggle Heatmap....
Making use of the regulation to a singular embedded part:.You can easily listen for events by passing an afterAdd strategy within the plugin alternatives, which are going to enable you to access and process the celebrations captured for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( information).// you can shoot this back to your analytics web server.,. ).A cool task on call on GitHub, aid the author by expanding it!