mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-07 14:57:12 -04:00
12 lines
318 B
TypeScript
12 lines
318 B
TypeScript
import { config } from '@/config';
|
|
import Plausible from 'plausible-tracker';
|
|
import type { App } from 'vue';
|
|
|
|
export const plausible = {
|
|
install: (app: App) => {
|
|
const plausible = Plausible(config.plausible);
|
|
plausible.enableAutoPageviews();
|
|
|
|
app.config.globalProperties.$plausible = plausible;
|
|
},
|
|
};
|