or even.yarn incorporate vue-heatmapjs.Usage.To use this plugin bring in it in your main.js.// main.js.bring in Vue from 'vue'.import heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And then you can easily add the v-heatmap directive to the dom elements you would like to track....You may toggle the heatmap on and off through passing an articulation right into the instruction:....Toggle Heatmap....
Using the ordinance to a single nested element:.You can listen for events by passing an afterAdd approach within the plugin choices, which will definitely permit you to access as well as process the activities recorded for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( records) console.log( records).// you may discharge this back to your analytics web server.,. ).A cool venture accessible on GitHub, assist the author through expanding it!