From ea060a775ceb334ee1fbc952db5853acda213f8d Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Fri, 4 Apr 2025 15:10:47 -0700 Subject: [PATCH] feat: track domain, path, title --- astro.config.mjs | 3 ++- src/components/ThemeProvider.astro | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index dc7ebb2..a99102f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -41,7 +41,8 @@ export default defineConfig({ id: "analytics", src: "https://analytics.nhcarrigan.com/js/script.file-downloads.outbound-links.js", defer: true, - "data-domain": "nhcarrigan.com" + "data-domain": "nhcarrigan.com", + "event-domain": "docs.nhcarrigan.com", } }, { diff --git a/src/components/ThemeProvider.astro b/src/components/ThemeProvider.astro index b5330ae..62380bf 100644 --- a/src/components/ThemeProvider.astro +++ b/src/components/ThemeProvider.astro @@ -4,6 +4,10 @@ import { Icon } from "@astrojs/starlight/components"; {/* This is intentionally inlined to avoid FOUC. */}