2021-12-16 15:48:50 +00:00
|
|
|
import VueMatomo from "vue-matomo";
|
|
|
|
|
|
|
|
export const matomo = (environment: any, matomoConfiguration: any) => {
|
|
|
|
console.debug("Loading Matomo statistics");
|
|
|
|
console.debug(
|
|
|
|
"Calling VueMatomo with the following configuration",
|
|
|
|
matomoConfiguration
|
|
|
|
);
|
2022-07-12 08:55:28 +00:00
|
|
|
environment.app.use(VueMatomo, {
|
2021-12-16 15:48:50 +00:00
|
|
|
...matomoConfiguration,
|
|
|
|
router: environment.router,
|
|
|
|
});
|
|
|
|
};
|