From ec7736bb09ead2803ce0588f4854a8f09b2ca292 Mon Sep 17 00:00:00 2001 From: Xander Grzywinski Date: Tue, 21 May 2024 10:34:07 -0700 Subject: [PATCH] add google analytics for docs pages --- site/astro.config.ts | 9 +++++++++ site/src/components/SkipLink.astro | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 site/src/components/SkipLink.astro diff --git a/site/astro.config.ts b/site/astro.config.ts index 6e54f621a0..18fe366d9a 100644 --- a/site/astro.config.ts +++ b/site/astro.config.ts @@ -25,6 +25,15 @@ export default defineConfig({ integrations: [ starlight({ title: "Zarf", + head: [ + { + tag: "script", + content: "(function(w,d,s,l,i){ ... })(window,document,'script','dataLayer','G-N1XZ8ZXCWL');", + }, + ], + components: { + SkipLink: "./src/components/SkipLink.astro", + }, social: { github: "https://github.com/defenseunicorns/zarf", slack: "https://kubernetes.slack.com/archives/C03B6BJAUJ3", diff --git a/site/src/components/SkipLink.astro b/site/src/components/SkipLink.astro new file mode 100644 index 0000000000..7d863429e4 --- /dev/null +++ b/site/src/components/SkipLink.astro @@ -0,0 +1,18 @@ +--- +import type { Props } from '@astrojs/starlight/props' +import Default from '@astrojs/starlight/components/SkipLink.astro' +--- + + + + + + \ No newline at end of file