From b81c74984e080528303f256c87b73494407d1346 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 19 Mar 2025 13:43:43 +0000 Subject: [PATCH] Add gam --- src/components/Analytics/GoogleAd.astro | 9 +++++++++ src/layouts/BaseLayout.astro | 15 +++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/components/Analytics/GoogleAd.astro diff --git a/src/components/Analytics/GoogleAd.astro b/src/components/Analytics/GoogleAd.astro new file mode 100644 index 000000000..91fb05b76 --- /dev/null +++ b/src/components/Analytics/GoogleAd.astro @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 2c455748c..1e0e84814 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -15,6 +15,7 @@ import { PageVisit } from '../components/PageVisit/PageVisit'; 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'; export interface Props { title: string; @@ -160,6 +161,7 @@ const gaPageIdentifier = Astro.url.pathname + @@ -190,6 +192,19 @@ const gaPageIdentifier = Astro.url.pathname client:load /> + +
+ +
+