or even.yarn add vue-heatmapjs.Consumption.To use this plugin bring in it in your main.js.// main.js.import Vue from 'vue'.bring in heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And then you can easily incorporate the v-heatmap ordinance to the dom components you wish to track....You can toggle the heatmap on and off through passing a phrase into the ordinance:....Button Heatmap....
Making use of the directive to a solitary nested part:.You can pay attention for events through passing an afterAdd strategy within the plugin possibilities, which are going to allow you to get access to and process the activities recorded for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( records) console.log( information).// you may discharge this spine to your analytics web server.,. ).An awesome task on call on GitHub, assist the author by expanding it!