or.yarn include vue-heatmapjs.Consumption.To use this plugin bring in it in your main.js.// main.js.import Vue coming from 'vue'.bring in heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And after that you may add the v-heatmap ordinance to the dom elements you desire to track....You can easily toggle the heatmap on as well as off by passing an expression right into the instruction:....Toggle Heatmap....
Making use of the ordinance to a single embedded part:.You can listen closely for celebrations by passing an afterAdd procedure within the plugin possibilities, which will allow you to get access to and process the activities recorded for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( data) console.log( records).// you may shoot this back to your analytics server.,. ).A cool task on call on GitHub, help the writer through increasing it!