From b6e18a26c0b1eeaf72f5ca6b82a3873f19186400 Mon Sep 17 00:00:00 2001 From: dawn-ducky Date: Wed, 16 Sep 2026 10:26:02 -0500 Subject: [PATCH 1/2] Add Clarity tracking script to astro.config.mjs Added Clarity tracking script to the configuration. --- astro.config.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index 9fa86709..535d9790 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -61,6 +61,13 @@ export default defineConfig({ type: 'font/woff2', crossorigin: '', }, + { + tag" 'script' + content: '(function(c,l,a,r,i,t,y){ + c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; + t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; + y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); + })(window, document, "clarity", "script", "yj9jgcvl5y");' }, ], components: { From 80ffb90f4c7d4e002bf6814345963b99287141b2 Mon Sep 17 00:00:00 2001 From: Mac Carrithers Date: Wed, 16 Sep 2026 11:29:09 -0600 Subject: [PATCH 2/2] fix: repair the Clarity script head entry The entry was nested inside the font preload object, its key was mistyped, and its body was a single-quoted string spanning lines, so astro.config.mjs no longer parsed. --- astro.config.mjs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 535d9790..f40ff033 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -61,13 +61,14 @@ export default defineConfig({ type: 'font/woff2', crossorigin: '', }, - { - tag" 'script' - content: '(function(c,l,a,r,i,t,y){ - c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; - t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; - y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); - })(window, document, "clarity", "script", "yj9jgcvl5y");' + }, + { + tag: 'script', + content: `(function (c, l, a, r, i, t, y) { + c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) }; + t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i; + y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y); +})(window, document, "clarity", "script", "yj9jgcvl5y");`, }, ], components: {