matomo added

This commit is contained in:
Christoph Haas 2024-12-24 02:00:55 +01:00
parent 52fd81ab83
commit 22f4b07260

View file

@ -2,6 +2,7 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight'; import starlight from '@astrojs/starlight';
import sitemap from '@astrojs/sitemap'; import sitemap from '@astrojs/sitemap';
import matomo from "astro-matomo";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
@ -32,7 +33,7 @@ export default defineConfig({
replacesTitle: true, replacesTitle: true,
}, },
}), }),
// https://github.com/felix-berlin/astro-matomo // https://github.com/felix-berlin/astro-matomo
matomo({ matomo({
enabled: import.meta.env.PROD, // Only load in production enabled: import.meta.env.PROD, // Only load in production
host: "https://matomo.workaround.org/", host: "https://matomo.workaround.org/",