Skip to content

Commit cd67439

Browse files
authored
chore: Add GA files (#21)
1 parent 4d2b666 commit cd67439

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

astro.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ import starlight from '@astrojs/starlight';
33
import starlightBlog from 'starlight-blog';
44
import remarkMath from 'remark-math';
55
import rehypeKatex from 'rehype-katex';
6+
import sitemap from '@astrojs/sitemap';
67

78
export default defineConfig({
89
site: 'https://minish.ai',
910
redirects: {
1011
'/packages': '/packages/overview/',
1112
},
1213
integrations: [
14+
sitemap(),
1315
starlight({
1416
title: 'Minish',
1517
components: {
@@ -23,6 +25,22 @@ export default defineConfig({
2325
},
2426
favicon: '/logo/minish_logo.png',
2527
customCss: ['./src/styles/custom.css'],
28+
head: [
29+
{
30+
tag: 'script',
31+
attrs: {
32+
src: 'https://www.googletagmanager.com/gtag/js?id=G-LQWDNXKF2X',
33+
async: true,
34+
},
35+
},
36+
{
37+
tag: 'script',
38+
content: `window.dataLayer = window.dataLayer || [];
39+
function gtag(){dataLayer.push(arguments);}
40+
gtag('js', new Date());
41+
gtag('config', 'G-LQWDNXKF2X');`,
42+
},
43+
],
2644
social: [
2745
{ icon: 'github', label: 'GitHub', href: 'https://github.com/minishlab' },
2846
{ icon: 'linkedin', label: 'LinkedIn', href: 'https://linkedin.com/company/minish-lab' },

public/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://minish.ai/sitemap-index.xml

0 commit comments

Comments
 (0)