From 2b262b74e73181b7e1be3a951dea67d277fefd15 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Mar 2026 15:27:04 +0000 Subject: [PATCH 1/2] Initial plan From 42884ee7e8f925dfaf90177e0bcdb9ba58915e15 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Mar 2026 15:31:31 +0000 Subject: [PATCH 2/2] Add Microsoft Clarity analytics script to Layout.astro Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> --- src/layouts/Layout.astro | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 2d64eb3..aa061c7 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -10,6 +10,7 @@ interface Props { const { title, description = 'Dev Proxy - Simulate API behaviors for testing and development', image } = Astro.props; const canonicalURL = new URL(Astro.url.pathname, Astro.site ?? 'https://devproxy.net'); const ogImage = image ? new URL(image, Astro.site ?? 'https://devproxy.net').href : undefined; +const clarityProjectId = import.meta.env.PUBLIC_CLARITY_PROJECT_ID; --- @@ -45,6 +46,15 @@ const ogImage = image ? new URL(image, Astro.site ?? 'https://devproxy.net').hre } })(); + {clarityProjectId && ( + + )}