blob: 56a886993ec6dbd8ddf79ea61d1516e2af5d4ad7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
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;
},
};
|