mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 12:37:56 +00:00
12 lines
360 B
JavaScript
12 lines
360 B
JavaScript
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);
|
|
},
|
|
};
|