Remove Matomo

This commit is contained in:
Korbs 2024-08-28 16:36:27 -04:00
parent 56fdd310ba
commit b56e0837c4

View file

@ -5,7 +5,6 @@ import keystatic from '@keystatic/astro';
import node from '@astrojs/node'; import node from '@astrojs/node';
import robotsTxt from 'astro-robots-txt'; import robotsTxt from 'astro-robots-txt';
import mdx from '@astrojs/mdx'; import mdx from '@astrojs/mdx';
import matomo from 'astro-matomo';
import vue from "@astrojs/vue"; import vue from "@astrojs/vue";
// https://astro.build/config // https://astro.build/config
@ -19,22 +18,7 @@ export default defineConfig({
}, },
integrations: [markdoc(), ...(process.env.SKIP_KEYSTATIC ? [] : [keystatic()]), AutoImport({ integrations: [markdoc(), ...(process.env.SKIP_KEYSTATIC ? [] : [keystatic()]), AutoImport({
imports: ['./src/components/keystatic/Image.astro', './src/components/init/SoftwareItem.astro'] imports: ['./src/components/keystatic/Image.astro', './src/components/init/SoftwareItem.astro']
}), mdx(), }), mdx(), robotsTxt({
// This must initalzied after AutoImport, not before
matomo({
enabled: import.meta.env.PROD,
// Only load in production
host: "https://stats.sudovanilla.org/",
setCookieDomain: "*.sudovanilla.org",
trackerUrl: "js/",
// defaults to matomo.php
srcUrl: "js/",
// defaults to matomo.js
siteId: 1,
heartBeatTimer: 5,
disableCookies: true,
debug: false
}), robotsTxt({
policy: [{ policy: [{
userAgent: 'Googlebot', userAgent: 'Googlebot',
disallow: '/' disallow: '/'