From 95c0d6a189bbbe3dd045e667229f5ccc81211a43 Mon Sep 17 00:00:00 2001 From: Pringled Date: Mon, 30 Mar 2026 08:37:46 +0200 Subject: [PATCH] Add GA --- astro.config.mjs | 18 ++++++++++++++++++ public/robots.txt | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 public/robots.txt diff --git a/astro.config.mjs b/astro.config.mjs index 1a03268..46f1de6 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,6 +3,7 @@ import starlight from '@astrojs/starlight'; import starlightBlog from 'starlight-blog'; import remarkMath from 'remark-math'; import rehypeKatex from 'rehype-katex'; +import sitemap from '@astrojs/sitemap'; export default defineConfig({ site: 'https://minish.ai', @@ -10,6 +11,7 @@ export default defineConfig({ '/packages': '/packages/overview/', }, integrations: [ + sitemap(), starlight({ title: 'Minish', components: { @@ -23,6 +25,22 @@ export default defineConfig({ }, favicon: '/logo/minish_logo.png', customCss: ['./src/styles/custom.css'], + head: [ + { + tag: 'script', + attrs: { + src: 'https://www.googletagmanager.com/gtag/js?id=G-LQWDNXKF2X', + async: true, + }, + }, + { + tag: 'script', + content: `window.dataLayer = window.dataLayer || []; +function gtag(){dataLayer.push(arguments);} +gtag('js', new Date()); +gtag('config', 'G-LQWDNXKF2X');`, + }, + ], social: [ { icon: 'github', label: 'GitHub', href: 'https://github.com/minishlab' }, { icon: 'linkedin', label: 'LinkedIn', href: 'https://linkedin.com/company/minish-lab' }, diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..0162846 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://minish.ai/sitemap-index.xml