or even.anecdote incorporate vue-heatmapjs.Consumption.To use this plugin bring in it in your main.js.// main.js.import Vue from 'vue'.bring in heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And then you can easily include the v-heatmap regulation to the dom components you want to track....You can easily toggle the heatmap on and also off through passing an expression in to the ordinance:....Toggle Heatmap....
Making use of the directive to a singular nested element:.You can listen for activities by passing an afterAdd method within the plugin choices, which will certainly enable you to accessibility as well as method the celebrations caught for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( data) console.log( information).// you may discharge this spine to your analytics hosting server.,. ).A great job offered on GitHub, assist the author through extending it!