feat: more events tracking for SaaS (#6234)
This commit is contained in:
11
app/javascript/dashboard/helper/AnalyticsHelper/plugin.js
Normal file
11
app/javascript/dashboard/helper/AnalyticsHelper/plugin.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import analyticsHelper from '.';
|
||||
|
||||
export default {
|
||||
// This function is called when the Vue plugin is installed
|
||||
install(Vue) {
|
||||
analyticsHelper.init();
|
||||
Vue.prototype.$analytics = analyticsHelper;
|
||||
// Add a shorthand function for the track method on the helper module
|
||||
Vue.prototype.$track = analyticsHelper.track.bind(analyticsHelper);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user