or even.yarn incorporate vue-heatmapjs.Consumption.To utilize this plugin import it in your main.js.// main.js.import Vue from 'vue'.bring in heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And after that you can easily include the v-heatmap regulation to the dom aspects you intend to track....You can toggle the heatmap on and off through passing a phrase right into the instruction:....Toggle Heatmap....
Making use of the instruction to a single embedded component:.You may listen closely for celebrations through passing an afterAdd technique within the plugin alternatives, which will certainly allow you to get access to as well as method the celebrations captured for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( information).// you may shoot this back to your analytics hosting server.,. ).A trendy project readily available on GitHub, assist the writer by broadening it!