From ff5609b72253a81481c2a4b117957df006a287e4 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 20 Mar 2025 14:46:34 +0000 Subject: [PATCH] Add gam support --- src/components/Analytics/GoogleAdSlot.astro | 59 +++++++++++++++++++++ src/layouts/BaseLayout.astro | 17 +----- 2 files changed, 61 insertions(+), 15 deletions(-) create mode 100644 src/components/Analytics/GoogleAdSlot.astro diff --git a/src/components/Analytics/GoogleAdSlot.astro b/src/components/Analytics/GoogleAdSlot.astro new file mode 100644 index 000000000..4556c571d --- /dev/null +++ b/src/components/Analytics/GoogleAdSlot.astro @@ -0,0 +1,59 @@ +
+ +
+ + diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index d5802493d..de0e5946f 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -16,6 +16,7 @@ import type { ResourceType } from '../lib/resource-progress'; import Clarity from '../components/Analytics/Clarity.astro'; import RedditPixel from '../components/Analytics/RedditPixel.astro'; import GoogleAd from '../components/Analytics/GoogleAd.astro'; +import GoogleAdSlot from '../components/Analytics/GoogleAdSlot.astro'; export interface Props { title: string; @@ -192,21 +193,7 @@ const gaPageIdentifier = Astro.url.pathname client:load /> - -
- -
- +