mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-24 08:46:15 -04:00
feat(tracker): added actions monitoring
This commit is contained in:
parent
40872859a5
commit
bfc2e24bbf
7 changed files with 26 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import { config } from '@/config';
|
||||
import { createTrackerService } from '@/modules/tracker/tracker.services';
|
||||
import Plausible from 'plausible-tracker';
|
||||
import type { App } from 'vue';
|
||||
|
||||
|
@ -7,6 +8,6 @@ export const plausible = {
|
|||
const plausible = Plausible(config.plausible);
|
||||
plausible.enableAutoPageviews();
|
||||
|
||||
app.config.globalProperties.$plausible = plausible;
|
||||
app.config.globalProperties.$tracker = createTrackerService({ plausible });
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue