matomo tracking added

This commit is contained in:
Christoph Haas 2024-12-23 18:35:38 +01:00
parent c0b577a37e
commit 8f3d0019e4
3 changed files with 25 additions and 0 deletions

View file

@ -32,6 +32,18 @@ export default defineConfig({
replacesTitle: true,
},
}),
// https://github.com/felix-berlin/astro-matomo
matomo({
enabled: import.meta.env.PROD, // Only load in production
host: "https://matomo.workaround.org/",
setCookieDomain: "*.workaround.org",
trackerUrl: "js/", // defaults to matomo.php
srcUrl: "js/", // defaults to matomo.js
siteId: 1,
heartBeatTimer: 5,
disableCookies: true,
debug: false,
}),
sitemap(),
],
});